mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-23 23:01:38 +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.11 6.10 6.8 6.5 Change-Id: Ib4303737e5e1d743dd0be1a8f829be9a0db2bc04 Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>
21 lines
832 B
PowerShell
21 lines
832 B
PowerShell
# Copyright (C) 2025 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
$script:nugetVersion = "v6.11.0"
|
|
$script:nugetPackage = "nuget_$nugetVersion.exe"
|
|
$script:packageRoot = "C:\Utils\NuGet\"
|
|
|
|
$script:cachedUrl = "\\ci-files01-hki.ci.qt.io\provisioning\windows\nuget\$nugetPackage"
|
|
$script:officialUrl = "https://dist.nuget.org/win-x86-commandline/$nugetVersion/nuget.exe"
|
|
$script:sdkChecksumSha1 = "5443887cfb5283da5021388d146ebb5febdc82e9"
|
|
$script:package_path = "$packageRoot\\$nugetPackage"
|
|
|
|
New-Item -ItemType Directory -Path "$packageRoot"
|
|
Download $officialUrl $cachedUrl $package_path
|
|
Verify-Checksum $package_path $sdkChecksumSha1
|
|
Write-Host "Installing Nuget"
|
|
|
|
Set-EnvironmentVariable "NUGET_EXE_PATH" "$package_path"
|