mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.
Task-number: QTBUG-67283
Task-number: QTBUG-108364
Change-Id: If26e4d35c780db4a7982bb84872b251dad24716e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit eecfb19548)
27 lines
868 B
PowerShell
27 lines
868 B
PowerShell
# Copyright (C) 2019 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"
|
|
|
|
$majorminorversion = "3.24"
|
|
$version = "3.24.2"
|
|
|
|
$zip = Get-DownloadLocation ("cmake-" + $version + "-windows-i386.zip")
|
|
$officialurl = "https://cmake.org/files/v" + $majorminorversion + "/cmake-" + $version + "-windows-i386.zip"
|
|
$cachedurl = "\\ci-files01-hki.intra.qt.io\provisioning\cmake\cmake-" + $version + "-windows-i386.zip"
|
|
|
|
Write-Host "Removing old cmake"
|
|
Remove "C:\CMake"
|
|
|
|
Download $officialurl $cachedurl $zip
|
|
Verify-Checksum $zip "97e6cdedded7a7522f4f4a64d7545d0454b4fad5"
|
|
|
|
Extract-7Zip $zip C:
|
|
$defaultinstallfolder = "C:\cmake-" + $version + "-windows-i386"
|
|
Rename-Item $defaultinstallfolder C:\CMake
|
|
|
|
Add-Path "C:\CMake\bin"
|
|
|
|
Write-Output "CMake = $version" >> ~\versions.txt
|
|
|