22# Licensed under the MIT License.
33
44param (
5- [string ]$ReleaseBranch = " " , # SideloadPreview, SideloadStable, StorePreview, or StoreStable
5+ [string ]$Branch = " " , # SideloadPreview, SideloadStable, StorePreview, or StoreStable
66 [string ]$PackageManifestPath = " " ,
77 [string ]$Publisher = " " ,
88 [string ]$WorkingDir = " " ,
@@ -27,7 +27,7 @@ $ea = $xmlDoc.SelectSingleNode("/pkg:Package/pkg:Applications/pkg:Application/pk
2727# Update the publisher
2828$xmlDoc.Package.Identity.Publisher = $Publisher
2929
30- if ($ReleaseBranch -eq " SideloadPreview" )
30+ if ($Branch -eq " SideloadPreview" )
3131{
3232 # Set identities
3333 $xmlDoc.Package.Identity.Name = " FilesPreview"
@@ -54,7 +54,7 @@ if ($ReleaseBranch -eq "SideloadPreview")
5454 Set-Content $_ - NoNewline `
5555 }
5656}
57- elseif ($ReleaseBranch -eq " StorePreview" )
57+ elseif ($Branch -eq " StorePreview" )
5858{
5959 # Set identities
6060 $xmlDoc.Package.Identity.Name = " 49306atecsolution.FilesPreview"
@@ -87,7 +87,7 @@ elseif ($ReleaseBranch -eq "StorePreview")
8787 Set-Content $_ - NoNewline `
8888 }
8989}
90- elseif ($ReleaseBranch -eq " SideloadStable" )
90+ elseif ($Branch -eq " SideloadStable" )
9191{
9292 # Set identities
9393 $xmlDoc.Package.Identity.Name = " Files"
@@ -114,7 +114,7 @@ elseif ($ReleaseBranch -eq "SideloadStable")
114114 Set-Content $_ - NoNewline `
115115 }
116116}
117- elseif ($ReleaseBranch -eq " StoreStable" )
117+ elseif ($Branch -eq " StoreStable" )
118118{
119119 # Set identities
120120 $xmlDoc.Package.Identity.Name = " 49306atecsolution.FilesUWP"
@@ -148,7 +148,7 @@ elseif ($ReleaseBranch -eq "StoreStable")
148148
149149Get-ChildItem $WorkingDir - Include * .cs - recurse | ForEach-Object - Process `
150150{ `
151- (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " cd_app_env_placeholder" , $ReleaseBranch }) | `
151+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " cd_app_env_placeholder" , $Branch }) | `
152152 Set-Content $_ - NoNewline `
153153}
154154
0 commit comments