mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-28 01:09:28 +08:00
...based on the length of the given hash.
Additionally use -ine for string comparison, which explicitly does
case-insensitive comparison. That is what the function needs, previously
it was done implicitly by -ne.
And remove MD5, it's not used anywhere.
Pick-to: 6.10 6.8 6.5
Change-Id: Ib4303737e5e1d743dd0be1a8f829be9a0db2bc04
Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>
(cherry picked from commit e5e813ef90)
20 lines
638 B
PowerShell
20 lines
638 B
PowerShell
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
# This script installs DirectX SDK
|
|
|
|
$package = "DXSDK_Jun10.exe"
|
|
|
|
$cachedUrl = "\\ci-files01-hki.ci.qt.io\provisioning\windows\$package"
|
|
$officialUrl = "https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/$package"
|
|
$sdkChecksumSha1 = "8fe98c00fde0f524760bb9021f438bd7d9304a69"
|
|
$package_path = "C:\Windows\Temp\$package"
|
|
|
|
Download $officialUrl $cachedUrl $package_path
|
|
Verify-Checksum $package_path $sdkChecksumSha1
|
|
Write-Host "Installing DirectX SDK"
|
|
Run-Executable $package_path "/u"
|
|
|
|
Remove "$package_path"
|
|
|
|
Write-Output "DirectX SDK = 9.29.1962 (Jun 10)" >> ~\versions.txt
|