https://github.com/Kitware/CMake
Raw File
Tip revision: 352ea99bbacf6e57bca47f43725d98b2a4a0b87d authored by Brad King on 23 February 2022, 14:22:31 UTC
CMake 3.23.0-rc2
Tip revision: 352ea99
jom.ps1
$erroractionpreference = "stop"

$sha256sum = "128FDD846FE24F8594EED37D1D8929A0EA78DF563537C0C1B1861A635013FFF8"
$tarball = "unstable-jom-2018-12-12.zip"

$outdir = $pwd.Path
$outdir = "$outdir\.gitlab"
$ProgressPreference = 'SilentlyContinue'
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
}

Expand-Archive -Path "$outdir\$tarball" -DestinationPath "$outdir\jom"
back to top