Skip to content

Commit

Permalink
add rename and unzip logic
Browse files Browse the repository at this point in the history
  • Loading branch information
miniksa committed May 6, 2021
1 parent 9a1d7a5 commit 6662ec3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/Helix/PrepareHelixPayload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ Copy-Item "build\helix\InstallTestAppDependencies.ps1" "$payloadDir"
Copy-Item "build\Helix\EnsureMachineState.ps1" "$payloadDir"

# Copy the APPX package from the 'drop' artifact dir
Copy-Item "$repoDirectory\Artifacts\$ArtifactName\appx\CascadiaPackage_0.0.1.0_$Platform.msix" $payloadDir
Copy-Item "$repoDirectory\Artifacts\$ArtifactName\appx\CascadiaPackage_0.0.1.0_$Platform.msix" $payloadDir\CascadiaPackage.zip

# Rename it to extension of ZIP because Expand-Archive is real sassy on the build machines
# and refuses to unzip it because of its file extension while on a desktop, it just
# does the job without complaining.

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

1 comment on commit 6662ec3

@github-actions

This comment was marked as duplicate.

Please sign in to comment.