Files
bottom/scripts/ci/setup_windows_gnullvm.ps1
T
Clement Tsang cc6facab16 packaging: allow wix (msi) to do same-version upgrades (#2304)
Make it so the wix config (MSI installer) allows same-version upgrades.

Pulled from #2302, kudos to @meop for the recommendation.
2026-11-04 11:12:38 +08:00

22 lines
633 B
PowerShell

$ErrorActionPreference = 'Stop'
$msys2 = 'C:\msys64'
$package = 'mingw-w64-clang-aarch64-clang'
& "$msys2\usr\bin\bash.exe" -lc 'pacman --noconfirm -Sy'
if ($LASTEXITCODE -ne 0) {
throw 'Failed to synchronize the MSYS2 package databases'
}
& "$msys2\usr\bin\bash.exe" -lc "pacman --noconfirm -S --needed '$package'"
if ($LASTEXITCODE -ne 0) {
throw 'Failed to install the CLANGARM64 toolchain'
}
$bin = "$msys2\clangarm64\bin"
$compiler = "$bin\aarch64-w64-mingw32-clang.exe"
if (-not (Test-Path $compiler)) {
throw "The CLANGARM64 compiler was not found at $compiler"
}
$bin >> $env:GITHUB_PATH
& $compiler --version