瀏覽代碼

ci: host WiX 3.14.0.8606 binaries ourselves

Follow the approach from commit 9ff7fffbf4 (ci: host WiX 3.14.0.6526
binaries ourselves, 2022-08-02, v3.24.0~6^2) for the updated version.
Since we use WiX to package our official release binaries, avoid relying
on an externally-hosted package by hosting it at `cmake.org`.
Brad King 1 年之前
父節點
當前提交
adb6af6959
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      .gitlab/ci/wix.ps1

+ 4 - 2
.gitlab/ci/wix.ps1

@@ -2,13 +2,15 @@ $erroractionpreference = "stop"
 
 $release = "wix314rtm"
 $sha256sum = "13F067F38969FAF163D93A804B48EA0576790A202C8F10291F2000F0E356E934"
-$filename = "wix314-binaries"
+#$filename = "wix314-binaries"
+$filename = "wix-3.14.0.8606-win-i386"
 $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"
+#Invoke-WebRequest -Uri "https://github.com/wixtoolset/wix3/releases/download/$release/$tarball" -OutFile "$outdir\$tarball"
+Invoke-WebRequest -Uri "https://cmake.org/files/dependencies/$tarball" -OutFile "$outdir\$tarball"
 $hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256
 if ($hash.Hash -ne $sha256sum) {
     exit 1