mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-04 22:17:45 +08:00
While Coin should also see exit codes != 0 as error, we should stick to one way of handling script errors. As Power Shell cmdlets signal an error by throwing an exception we should do the same (and that approach also works in Coin). Additionally extracting 7zip files was unified across scripts by using the existing helper function instead of reinventing the wheel again and again. A similar helper function was introduced for starting an external application (and handling its errors). Also echo and other "cmd" commands were replaced by their PowerShell equivalents to have a unified approach across our Windows provisioning scripts. Change-Id: I70129ce38692f1396c33c13b33a2918485fa5271 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
20 lines
563 B
PowerShell
20 lines
563 B
PowerShell
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
# This script installs DirectX SDK
|
|
|
|
$package = "DXSDK_Jun10.exe"
|
|
|
|
$cacheUrl = "\\ci-files01-hki.intra.qt.io\provisioning\windows\$package"
|
|
$officialUrl = "https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/$package"
|
|
$sdkChecksum = "8fe98c00fde0f524760bb9021f438bd7d9304a69"
|
|
$exe = "C:\Windows\Temp\$package"
|
|
|
|
Download $officialUrl $cachedUrl $exe
|
|
|
|
Write-Host "Installing DirectX SDK"
|
|
Run-Executable $exe "/u"
|
|
|
|
Remove-Item -Path $exe
|
|
|
|
Write-Output "DirectX SDK = 9.29.1962 (Jun 10)" >> ~\versions.txt
|