mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-30 10:26:03 +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>
31 lines
1.0 KiB
PowerShell
31 lines
1.0 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 will install Notepad++
|
|
|
|
$version = "7.3"
|
|
if (Is64BitWinHost) {
|
|
$arch = ".x64"
|
|
$sha1 = "E7306DF1D6E81801FB4BE0868610DB70E979B0AA"
|
|
} else {
|
|
$arch = ""
|
|
$sha1 = "d4c403675a21cc381f640b92e596bae3ef958dc6"
|
|
}
|
|
$url_cache = "\\ci-files01-hki.ci.qt.io\provisioning\windows\npp." + $version + ".Installer" + $arch + ".exe"
|
|
$url_official = "https://notepad-plus-plus.org/repository/7.x/" + $version + "/npp." + $version + ".Installer" + $arch + ".exe"
|
|
$nppPackage = "C:\Windows\Temp\npp-$version.exe"
|
|
|
|
Download $url_official $url_cache $nppPackage
|
|
Verify-Checksum $nppPackage $sha1
|
|
Run-Executable "$nppPackage" "/S"
|
|
|
|
Write-Host "Cleaning $nppPackage.."
|
|
Remove "$nppPackage"
|
|
|
|
Write-Output "Notepad++ = $version" >> ~\versions.txt
|
|
|
|
Write-Host "Disabling auto updates."
|
|
Rename-Item -Path "C:\Program Files\Notepad++\updater" -NewName "updater_disabled"
|