Skip to content

Commit

Permalink
Update Configure-AppxManifest.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Dec 6, 2024
1 parent 69a5775 commit 1cfc8e1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/scripts/Configure-AppxManifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand All @@ -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")
{
Expand All @@ -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")
{
Expand All @@ -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 `
Expand Down

0 comments on commit 1cfc8e1

Please sign in to comment.