mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-20 13:32:42 +08:00
This reverts commit 72f11e0952.
Reason for revert: WoA is not going be included in 6.7 and WoA target is blocking dd08ded0fc20f5fce10bf287d4d22ae026226717, -51 template will not work with the proxy enabled and -53 template brings error C2672 with its updated MSVC in 6.7 qtbase.
Task-number: QTQAINFRA-6111
Change-Id: I13fde01aba392b173db178bff6893b71c20ae98a
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
34 lines
978 B
PowerShell
34 lines
978 B
PowerShell
# Copyright (C) 2017 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"
|
|
|
|
# This script installs 7-Zip
|
|
|
|
$version = "23.01"
|
|
$nonDottedVersion = "2301"
|
|
|
|
if (Is64BitWinHost) {
|
|
$arch = "-x64"
|
|
$sha1 = "7DF28D340D7084647921CC25A8C2068BB192BDBB"
|
|
} else {
|
|
$arch = ""
|
|
$sha1 = "D5D00E6EA8B8E68CE7A704FD478DC950E543C25C"
|
|
}
|
|
|
|
$url_cache = "https://ci-files01-hki.ci.qt.io/input/windows/7z" + $nonDottedVersion + $arch + ".exe"
|
|
$url_official = "http://www.7-zip.org/a/7z" + $nonDottedVersion + $arch + ".exe"
|
|
$7zPackage = "C:\Windows\Temp\7zip-$nonDottedVersion.exe"
|
|
$7zTargetLocation = "C:\Utils\sevenzip\"
|
|
|
|
Download $url_official $url_cache $7zPackage
|
|
Verify-Checksum $7zPackage $sha1
|
|
Run-Executable $7zPackage "/S","/D=$7zTargetLocation"
|
|
|
|
Write-Host "Cleaning $7zPackage.."
|
|
Remove "$7zPackage"
|
|
|
|
Add-Path $7zTargetLocation
|
|
|
|
Write-Output "7-Zip = $version" >> ~\versions.txt
|