Skip to content

Commit 6662ec3

Browse files
committed
add rename and unzip logic
1 parent 9a1d7a5 commit 6662ec3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build/Helix/PrepareHelixPayload.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ Copy-Item "build\helix\InstallTestAppDependencies.ps1" "$payloadDir"
5454
Copy-Item "build\Helix\EnsureMachineState.ps1" "$payloadDir"
5555

5656
# Copy the APPX package from the 'drop' artifact dir
57-
Copy-Item "$repoDirectory\Artifacts\$ArtifactName\appx\CascadiaPackage_0.0.1.0_$Platform.msix" $payloadDir
57+
Copy-Item "$repoDirectory\Artifacts\$ArtifactName\appx\CascadiaPackage_0.0.1.0_$Platform.msix" $payloadDir\CascadiaPackage.zip
58+
59+
# Rename it to extension of ZIP because Expand-Archive is real sassy on the build machines
60+
# and refuses to unzip it because of its file extension while on a desktop, it just
61+
# does the job without complaining.
5862

5963
# Extract the APPX package
60-
Expand-Archive -LiteralPath $payloadDir\CascadiaPackage_0.0.1.0_$Platform.msix -DestinationPath $payloadDir\appx
64+
Expand-Archive -LiteralPath $payloadDir\CascadiaPackage.zip -DestinationPath $payloadDir\appx

0 commit comments

Comments
 (0)