Skip to content

Commit 1cfc8e1

Browse files
committed
Update Configure-AppxManifest.ps1
1 parent 69a5775 commit 1cfc8e1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/scripts/Configure-AppxManifest.ps1

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ if ($Branch -eq "SideloadPreview")
2828
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Preview" }) | `
2929
Set-Content $_ -NoNewline `
3030
}
31+
32+
Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process `
33+
{ `
34+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".SideloadPreview" }) | `
35+
Set-Content $_ -NoNewline `
36+
}
3137
}
3238
elseif ($Branch -eq "SideloadStable")
3339
{
@@ -43,6 +49,12 @@ elseif ($Branch -eq "SideloadStable")
4349
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Release" }) | `
4450
Set-Content $_ -NoNewline `
4551
}
52+
53+
Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process `
54+
{ `
55+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".SideloadStable" }) | `
56+
Set-Content $_ -NoNewline `
57+
}
4658
}
4759
elseif ($Branch -eq "StoreStable")
4860
{
@@ -65,6 +77,12 @@ elseif ($Branch -eq "StoreStable")
6577
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Release" }) | `
6678
Set-Content $_ -NoNewline `
6779
}
80+
81+
Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process `
82+
{ `
83+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".StoreStable" }) | `
84+
Set-Content $_ -NoNewline `
85+
}
6886
}
6987
elseif ($Branch -eq "StorePreview")
7088
{
@@ -87,6 +105,12 @@ elseif ($Branch -eq "StorePreview")
87105
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Preview" }) | `
88106
Set-Content $_ -NoNewline `
89107
}
108+
109+
Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process `
110+
{ `
111+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".StorePreview" }) | `
112+
Set-Content $_ -NoNewline `
113+
}
90114
}
91115

92116
Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process `

0 commit comments

Comments
 (0)