@@ -11,19 +11,20 @@ param(
1111 [string ]$SecretGitHubOAuthClientId = " "
1212)
1313
14- [xml ]$xmlDoc = Get-Content " $PackageManifestPath "
15- $xmlDoc.Package.Identity.Publisher = " $Publisher "
14+ [xml ]$xmlDoc = Get-Content $PackageManifestPath
15+ $xmlDoc.Package.Identity.Publisher = $Publisher
1616
1717if ($Branch -eq " Preview" )
1818{
1919 # Set identities
2020 $xmlDoc.Package.Identity.Name = " FilesPreview"
2121 $xmlDoc.Package.Properties.DisplayName = " Files - Preview"
2222 $xmlDoc.Package.Applications.Application.VisualElements.DisplayName = " Files - Preview"
23+ $xmlDoc.Save ($PackageManifestPath )
2324
24- Get-ChildItem " $WorkingDir \src " - Include * .csproj, * .appxmanifest, * .wapproj, * .xaml - recurse | ForEach - Process `
25+ Get-ChildItem $WorkingDir - Include * .csproj, * .appxmanifest, * .wapproj, * .xaml - recurse | ForEach-Object - Process `
2526 { `
26- (Get-Content $_ - Raw | ForEach - Process { $_ -replace " Assets\\AppTiles\\Dev" , " Assets\AppTiles\Preview" }) | `
27+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " Assets\\AppTiles\\Dev" , " Assets\AppTiles\Preview" }) | `
2728 Set-Content $_ - NoNewline `
2829 }
2930}
@@ -33,10 +34,11 @@ elseif ($Branch -eq "Stable")
3334 $xmlDoc.Package.Identity.Name = " Files"
3435 $xmlDoc.Package.Properties.DisplayName = " Files"
3536 $xmlDoc.Package.Applications.Application.VisualElements.DisplayName = " Files"
37+ $xmlDoc.Save ($PackageManifestPath )
3638
37- Get-ChildItem " $WorkingDir \src " - Include * .csproj, * .appxmanifest, * .wapproj, * .xaml - recurse | ForEach - Process `
39+ Get-ChildItem $WorkingDir - Include * .csproj, * .appxmanifest, * .wapproj, * .xaml - recurse | ForEach-Object - Process `
3840 { `
39- (Get-Content $_ - Raw | ForEach - Process { $_ -replace " Assets\\AppTiles\\Dev" , " Assets\AppTiles\Release" }) | `
41+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " Assets\\AppTiles\\Dev" , " Assets\AppTiles\Release" }) | `
4042 Set-Content $_ - NoNewline `
4143 }
4244}
@@ -53,29 +55,28 @@ elseif ($Branch -eq "Store")
5355 $nsmgr.AddNamespace (" rescap" , " http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" )
5456 $pm = $xmlDoc.SelectSingleNode (" /pkg:Package/pkg:Capabilities/rescap:Capability[@Name='packageManagement']" , $nsmgr )
5557 $xmlDoc.Package.Capabilities.RemoveChild ($pm )
58+ $xmlDoc.Save ($PackageManifestPath )
5659
57- Get-ChildItem " $WorkingDir \src " - Include * .csproj, * .appxmanifest, * .wapproj, * .xaml - recurse | ForEach - Process `
60+ Get-ChildItem $WorkingDir - Include * .csproj, * .appxmanifest, * .wapproj, * .xaml - recurse | ForEach-Object - Process `
5861 { `
59- (Get-Content $_ - Raw | ForEach - Process { $_ -replace " Assets\\AppTiles\\Dev" , " Assets\AppTiles\Release" }) | `
62+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " Assets\\AppTiles\\Dev" , " Assets\AppTiles\Release" }) | `
6063 Set-Content $_ - NoNewline `
6164 }
6265}
6366
64- $xmlDoc.Save (" $PackageManifestPath " )
65-
66- Get-ChildItem " $WorkingDir \src" - Include * .cs - recurse | ForEach-Object - Process `
67+ Get-ChildItem $WorkingDir - Include * .cs - recurse | ForEach-Object - Process `
6768{ `
6869 (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " bingmapskey.secret" , " $SecretBingMapsKey " }) | `
6970 Set-Content $_ - NoNewline `
7071}
7172
72- Get-ChildItem " $WorkingDir \src " - Include * .cs - recurse | ForEach-Object - Process `
73+ Get-ChildItem $WorkingDir - Include * .cs - recurse | ForEach-Object - Process `
7374{
7475 (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " sentry.secret" , " $SecretSentry " }) | `
7576 Set-Content $_ - NoNewline `
7677}
7778
78- Get-ChildItem " $WorkingDir \src " - Include * .cs - recurse | ForEach-Object - Process `
79+ Get-ChildItem $WorkingDir - Include * .cs - recurse | ForEach-Object - Process `
7980{ `
8081 (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " githubclientid.secret" , " $SecretGitHubOAuthClientId " }) | `
8182 Set-Content $_ - NoNewline `
0 commit comments