@@ -36,8 +36,8 @@ if ($Branch -eq "Preview")
3636 $xmlDoc.Package.Applications.Application.VisualElements.DefaultTile.ShortName = " Files - Preview"
3737
3838 # Update app protocol and execution alias
39- $ap.SetAttribute (" Name" , " files-pre " );
40- $ea.SetAttribute (" Alias" , " files-pre .exe" );
39+ $ap.SetAttribute (" Name" , " files-preview " );
40+ $ea.SetAttribute (" Alias" , " files-preview .exe" );
4141
4242 # Save modified Package.appxmanifest
4343 $xmlDoc.Save ($PackageManifestPath )
@@ -50,7 +50,7 @@ if ($Branch -eq "Preview")
5050
5151 Get-ChildItem $WorkingDir - Include * .cs, * .cpp - recurse | ForEach-Object - Process `
5252 { `
53- (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " files-dev" , " files-pre " }) | `
53+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " files-dev" , " files-preview " }) | `
5454 Set-Content $_ - NoNewline `
5555 }
5656}
@@ -63,8 +63,8 @@ elseif ($Branch -eq "Stable")
6363 $xmlDoc.Package.Applications.Application.VisualElements.DefaultTile.ShortName = " Files"
6464
6565 # Update app protocol and execution alias
66- $ap.SetAttribute (" Name" , " files" );
67- $aea .RemoveChild (aea.FirstChild); # Avoid duplication
66+ $ap.SetAttribute (" Name" , " files-stable " );
67+ $ea .SetAttribute ( " Alias " , " files-stable.exe " );
6868
6969 # Save modified Package.appxmanifest
7070 $xmlDoc.Save ($PackageManifestPath )
@@ -77,7 +77,7 @@ elseif ($Branch -eq "Stable")
7777
7878 Get-ChildItem $WorkingDir - Include * .cs, * .cpp - recurse | ForEach-Object - Process `
7979 { `
80- (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " files-dev" , " files" }) | `
80+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " files-dev" , " files-stable " }) | `
8181 Set-Content $_ - NoNewline `
8282 }
8383}
0 commit comments