Remove unnecessary executable permission from .ps1 scripts
[kiteware-cmake.git] / .gitlab / ci / wix4.ps1
blob6209f2bf3fb0d35fb2fb64d02a42eed1441775f5
1 $erroractionpreference = "stop"
3 $version = "4.0.4"
4 $sha256sum = "FB6E94C89B12FB65D3AA0CF9E9C630DAFCC7D57F1E66C7D6035CAD37A38CC284"
5 $filename = "wix-$version-win-any-1"
6 $tarball = "$filename.zip"
8 $outdir = $pwd.Path
9 $outdir = "$outdir\.gitlab"
10 $ProgressPreference = 'SilentlyContinue'
11 Invoke-WebRequest -Uri "https://cmake.org/files/dependencies/$tarball" -OutFile "$outdir\$tarball"
12 $hash = Get-FileHash "$outdir\$tarball" -Algorithm SHA256
13 if ($hash.Hash -ne $sha256sum) {
14 exit 1
17 Add-Type -AssemblyName System.IO.Compression.FileSystem
18 [System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
19 Move-Item -Path "$outdir\$filename" -Destination "$outdir\wix4"
20 Remove-Item "$outdir\$tarball"