diff options
author | Brad King <brad.king@kitware.com> | 2021-01-21 16:41:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-21 16:53:11 (GMT) |
commit | 8efbb0c95fe79f883973b6f36b718f95662c147c (patch) | |
tree | 90cbdbaee83dc5d4a12df26d62e21bdfab2ddc09 /.gitlab/ci | |
parent | 5e5fecb7bca1a351df2c30b63d4d5a7194aa773f (diff) | |
download | CMake-8efbb0c95fe79f883973b6f36b718f95662c147c.zip CMake-8efbb0c95fe79f883973b6f36b718f95662c147c.tar.gz CMake-8efbb0c95fe79f883973b6f36b718f95662c147c.tar.bz2 |
ci: download WiX on Windows
Avoid requiring Windows CI hosts to have WiX installed.
Diffstat (limited to '.gitlab/ci')
-rwxr-xr-x | .gitlab/ci/wix.ps1 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab/ci/wix.ps1 b/.gitlab/ci/wix.ps1 new file mode 100755 index 0000000..a9322b6 --- /dev/null +++ b/.gitlab/ci/wix.ps1 @@ -0,0 +1,18 @@ +$erroractionpreference = "stop" + +$release = "wix3112rtm" +$sha256sum = "2C1888D5D1DBA377FC7FA14444CF556963747FF9A0A289A3599CF09DA03B9E2E" +$filename = "wix311-binaries" +$tarball = "$filename.zip" + +$outdir = $pwd.Path +$outdir = "$outdir\.gitlab" +$ProgressPreference = 'SilentlyContinue' +Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/$release/$tarball" -OutFile "$outdir\$tarball" +$hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256 +if ($hash.Hash -ne $sha256sum) { + exit 1 +} + +Add-Type -AssemblyName System.IO.Compression.FileSystem +[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir\wix\bin") |