Skip to content

Commit

Permalink
ci: detach & reattach burn engine when signing
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jul 28, 2024
1 parent 50dff9c commit dcce9df
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions resources/scripts/package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,22 @@ function BuildInstallers() {
-d EXE_DIR="out/$arch"
}

SignFiles @("out/installer-x64.msi", "out/installer-arm64.msi")

Write-Output "Creating universal installer"
wix build -arch "x64" -ext WixToolset.BootstrapperApplications.wixext `
-out "./out/installer-universal.exe" "./resources/wix/bundle.wxs" `
-out "./out/unsigned-installer-universal.exe" "./resources/wix/bundle.wxs" `
-d VERSION_NUMBER="$VersionNumber"

SignFiles @(
"out/installer-x64.msi",
"out/installer-arm64.msi",
"out/installer-universal.exe"
)
Write-Output "Detaching & reattaching Burn engine for signing"
wix burn detach "./out/unsigned-installer-universal.exe" -engine "./out/engine.exe"
SignFiles @("out/engine.exe")

wix burn reattach "./out/unsigned-installer-universal.exe" `
-engine "./out/engine.exe" `
-o "./out/installer-universal.exe"

SignFiles @("out/installer-universal.exe")
}

function Package() {
Expand Down

0 comments on commit dcce9df

Please sign in to comment.