mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-09 08:26:34 +08:00
Previously all files got downloaded to a hardcoded path, including the username for the CI machines. Usually, it does not fit the username of a local development machine, complicating to reproduce bugs. Introduce Get-(Default)DownloadLocation functions in helpers to specify the default download location. This helps to run the provisioning scripts on a local machine. Change-Id: I761a92bf5e3e774358756a95dddb9a5d6ee54db9 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
14 lines
444 B
PowerShell
14 lines
444 B
PowerShell
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
$zip = Get-DownloadLocation "ninja-1.6.0-win-x86.zip"
|
|
|
|
Download https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip \\ci-files01-hki.intra.qt.io\provisioning\ninja\ninja-1.6.0-win-x86.zip $zip
|
|
Verify-Checksum $zip "E01093F6533818425F8EFB0843CED7DCAABEA3B2"
|
|
|
|
Extract-7Zip $zip C:\Utils\Ninja
|
|
Remove-Item -Path $zip
|
|
|
|
Add-Path "C:\Utils\Ninja"
|
|
|
|
Write-Output "Ninja = 1.6.0" >> ~/versions.txt
|