mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 11:26:04 +08:00
Update nodejs to fix flacky webengine builds on windows due to uv console init race condition. Leave LTS nodejs release on other platforms. Fixes: QTQAINFRA-5437 Change-Id: Id066d29c819afe8e7de168a8d35d078c5408acef Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io> (cherry picked from commitdcf72e8116) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit6d6f4ba46c)
32 lines
974 B
PowerShell
32 lines
974 B
PowerShell
# Copyright (C) 2020 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 Node.js
|
|
# Needed by QtWebengine
|
|
|
|
$version = "20.7.0"
|
|
if (Is64BitWinHost) {
|
|
$arch = "x64"
|
|
$sha1 = "c540fe3d81e2129eabeb1b923f4434df4b4a66ae"
|
|
} else {
|
|
$arch = "x86"
|
|
$sha1 = "435ae044169143515926493e3eae368070e6883f"
|
|
}
|
|
|
|
$package = "C:\Windows\temp\nodejs-$version.zip"
|
|
$targetFolder = "C:\Utils"
|
|
$installFolder = "C:\Utils\node-v$version-win-$arch"
|
|
$externalUrl = "https://nodejs.org/dist/v$version/node-v$version-win-$arch.zip"
|
|
$internalUrl = "http://ci-files01-hki.intra.qt.io/input/windows/node-v$version-win-$arch.zip"
|
|
|
|
Write-Host "Installing Node.js"
|
|
Download $externalUrl $internalUrl $package
|
|
Verify-Checksum $package $sha1
|
|
Extract-7Zip $package $targetFolder
|
|
Add-Path $installFolder
|
|
Remove $package
|
|
|
|
Write-Output "Node.js = $version" >> ~/versions.txt
|