mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-11-06 16:07:55 +00:00
- 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.
15 lines
614 B
PowerShell
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
|