From 1cfc8e186cf7dd8a80c5a38c43d7769f8a6c63a0 Mon Sep 17 00:00:00 2001 From: Yair <39923744+yaira2@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:55:34 -0500 Subject: [PATCH] Update Configure-AppxManifest.ps1 --- .github/scripts/Configure-AppxManifest.ps1 | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/scripts/Configure-AppxManifest.ps1 b/.github/scripts/Configure-AppxManifest.ps1 index a2937f4083792..0c0294aca35e7 100644 --- a/.github/scripts/Configure-AppxManifest.ps1 +++ b/.github/scripts/Configure-AppxManifest.ps1 @@ -28,6 +28,12 @@ if ($Branch -eq "SideloadPreview") (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Preview" }) | ` Set-Content $_ -NoNewline ` } + + Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process ` + { ` + (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".SideloadPreview" }) | ` + Set-Content $_ -NoNewline ` + } } elseif ($Branch -eq "SideloadStable") { @@ -43,6 +49,12 @@ elseif ($Branch -eq "SideloadStable") (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Release" }) | ` Set-Content $_ -NoNewline ` } + + Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process ` + { ` + (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".SideloadStable" }) | ` + Set-Content $_ -NoNewline ` + } } elseif ($Branch -eq "StoreStable") { @@ -65,6 +77,12 @@ elseif ($Branch -eq "StoreStable") (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Release" }) | ` Set-Content $_ -NoNewline ` } + + Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process ` + { ` + (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".StoreStable" }) | ` + Set-Content $_ -NoNewline ` + } } elseif ($Branch -eq "StorePreview") { @@ -87,6 +105,12 @@ elseif ($Branch -eq "StorePreview") (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Preview" }) | ` Set-Content $_ -NoNewline ` } + + Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process ` + { ` + (Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "cd_app_env_placeholder", ".StorePreview" }) | ` + Set-Content $_ -NoNewline ` + } } Get-ChildItem $WorkingDir -Include *.cs -recurse | ForEach-Object -Process `