mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 11:26:04 +08:00
Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.5 6.6 Task-number: QTBUG-67283 Task-number: QTBUG-108364 Change-Id: If26e4d35c780db4a7982bb84872b251dad24716e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
36 lines
1.3 KiB
PowerShell
36 lines
1.3 KiB
PowerShell
# Copyright (C) 2021 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"
|
|
|
|
function InstallMinGW
|
|
{
|
|
Param (
|
|
[string] $release = $(BadParam("release file name")),
|
|
[string] $sha1 = $(BadParam("SHA1 checksum of the file"))
|
|
)
|
|
|
|
$null, $null, $arch, $version, $null, $threading, $ex_handling, $build_ver, $revision = $release.split('-')
|
|
|
|
if ($arch -eq "x86_64") { $win_arch = "Win64" }
|
|
$envvar = "MINGW$version"
|
|
$envvar = $envvar -replace '["."]'
|
|
$targetdir = "C:\$envvar"
|
|
|
|
$url_original = "https://github.com/cristianadam/mingw-builds/releases/download/v" + $version + "-" + $revision + "/" + $arch + "-" + $version + "-release-" + $threading + "-" + $ex_handling + "-" + $build_ver + "-" + $revision + ".7z"
|
|
$url_cache = "\\ci-files01-hki.ci.qt.io\provisioning\windows\" + $release + ".7z"
|
|
$mingwPackage = "C:\Windows\Temp\MinGW-$version.zip"
|
|
Download $url_original $url_cache $mingwPackage
|
|
Verify-Checksum $mingwPackage $sha1
|
|
|
|
Extract-7Zip $mingwPackage $TARGETDIR
|
|
|
|
Set-EnvironmentVariable "$envvar" ("$targetdir\mingw" + $win_arch.Substring($win_arch.get_Length()-2))
|
|
|
|
Write-Host "Cleaning $mingwPackage.."
|
|
Remove "$mingwPackage"
|
|
|
|
Write-Output "MinGW = $version $release" >> ~\versions.txt
|
|
|
|
}
|