fix(ci): use pre-OSMF WiX for Windows packaging

cx
This commit is contained in:
vicrodh committed 2026-08-28 09:44:25 -06:00
1 parent 0b7fa6da93
commit 9a0dbd60c2
2 files changed
+11 -8

No files matched your search

+5 -3
View File
@@ -293,10 +293,12 @@ jobs:
[IO.File]::WriteAllBytes("cert.pfx", [Convert]::FromBase64String($env:WINDOWS_CERT_PFX))
& "$(vswhere -latest -find '**\signtool.exe' | Select-Object -First 1)" sign /f cert.pfx /p $env:WINDOWS_CERT_PASSWORD /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 dist\qbz\qbz.exe
# Pinned: an unpinned install gives 7.0.0 today (v5 EOL 2024-10); the
# authoring is identical v5..v7, the pin keeps the run reproducible.
# WiX 6+ binary releases require accepting the OSMF EULA. Keep the
# installer on the last compatible pre-OSMF toolchain instead of making
# a CI job accept legal terms on a maintainer's behalf. The committed
# authoring deliberately stays within WiX 5 syntax.
- name: WiX
run: dotnet tool install --global wix --version 7.0.0 && wix --version
run: dotnet tool install --global wix --version 5.0.2 && wix --version
- name: Build MSI
env:
+6 -5
View File
@@ -4,17 +4,18 @@
Destination in the repo: packaging/windows/qbz.wxs plus
packaging/icons/icon.ico.
Build (see 01-release-windows.yml). NOTE the version pin: an unpinned
An unpinned global `dotnet tool install` installs 7.0.0, not 5.x.
Install wix globally at version 7.0.0, then run:
Build (see release-windows.yml). NOTE the version pin: WiX 6+ binary
releases require accepting the OSMF EULA, so CI deliberately stays on the
last compatible pre-OSMF toolchain. Install wix globally at version 5.0.2,
then run:
wix build packaging/windows/qbz.wxs -arch x64 \
-d SourceDir=<abs Windows path to the windeployqt dir> \
-d ProductVersion=x.y.z -d FullVersion=x.y.z-rc.1 \
-d IconPath=<abs Windows path to icon.ico> -o QBZ_<ver>_x64.msi
This authoring is valid on WiX v5, v6 and v7 (same XML namespace, and
This authoring is valid on WiX v5 (the v4 XML namespace is expected, and
<Files> exists since v5). Do not reach for Package/@Id (v6+) or
Scope="perMachineOrUser" (v7+) if the pin may move back.
Scope="perMachineOrUser" (v7+).
Contract:
* per-user (no UAC) into %LOCALAPPDATA%\Programs\QBZ