mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-06 06:56:53 +08:00
Visual Studio 2022 is the first msvc having natively support for
building and debugging ARM64 apps. [CI Platforms]
Provisioning needed to take new Get-CpuArchitecture
helpers.ps1 function into use in several installations.
Requirements for other branches
- Get-CpuArchitecture helpers.ps1 function
- Skip qtwebengine with Windows 11 ARM (QTBUG-124632)
List of excluded installations in Windows on ARM:
- Could be added later
- MinGW - QTQAINFRA-6079
- DirectX SDK for RTA
- libclang
- mcuexpresso
- fbx for msvc2022
- Ruby
- For python
- conan
- emsdk
- Not supported yet
- FFmpeg
- Msys2 (for FFmpeg QTBUG-124399)
- MySQL
- PostgreSQL
- Java JDK
- Strawberry Perl
Task-number: QTQAINFRA-6109
Task-number: QTQAINFRA-5855
Pick-to: 6.7
Change-Id: I4130e78add53f8a6e05eb41b7617b3f9ca802178
Reviewed-by: Simo Fält <simo.falt@qt.io>
48 lines
1.2 KiB
PowerShell
48 lines
1.2 KiB
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"
|
|
|
|
$cpu_arch = Get-CpuArchitecture
|
|
switch ($cpu_arch) {
|
|
arm64 {
|
|
$arch = "-arm64"
|
|
$sha1 = "be65c2ea6119c04945c66b13413892f2bb03d9a7"
|
|
Break
|
|
}
|
|
x64 {
|
|
$arch = "-x64"
|
|
$sha1 = "7DF28D340D7084647921CC25A8C2068BB192BDBB"
|
|
Break
|
|
}
|
|
x86 {
|
|
$arch = ""
|
|
$sha1 = "D5D00E6EA8B8E68CE7A704FD478DC950E543C25C"
|
|
Break
|
|
}
|
|
default {
|
|
throw "Unknown architecture $cpu_arch"
|
|
}
|
|
}
|
|
|
|
$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
|