Files
nyaterm/scripts/ci/install-wix.ps1
T
Kang 9663a91287 feat(release): add Windows MSI packaging and verification
- Implemented MSI packaging for stable releases, including installation scripts and metadata generation.
- Added tests to ensure MSI files are correctly generated and verified against expected properties.
- Updated release workflows to include MSI installation and signing steps.
- Enhanced artifact management to conditionally include MSI files based on release type.
2026-10-26 17:33:24 +08:00

15 lines
614 B
PowerShell

# Install the release's pinned WiX CLI in an isolated directory, never globally.
$ErrorActionPreference = 'Stop'
$version = '6.0.2'
$toolPath = Join-Path $env:RUNNER_TEMP "nyaterm-wix-$version"
dotnet tool install wix --version $version --tool-path $toolPath
if ($LASTEXITCODE -ne 0) { throw 'WiX installation failed' }
$wix = Join-Path $toolPath 'wix.exe'
$installedVersion = & $wix --version
if ($LASTEXITCODE -ne 0 -or ($installedVersion.Trim() -split '\+')[0] -ne $version) {
throw "Expected WiX $version, found $installedVersion"
}
$toolPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append