Change NodeJS on Windows to 64-bit, downgrade to v14.16.1 (#64513)

* Change bootstrapped NodeJS on Windows from 32-bit to 64-bit

* Last node version to support Win7

* Skip platform check

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
This commit is contained in:
William Wallace
2022-01-29 20:02:49 +02:00
committed by GitHub
co-authored by Aleksej Komarov
parent d0dbfc8d80
commit 3c36bd210c
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ export BYOND_MINOR=1560
export RUST_G_VERSION=0.5.0
#node version
export NODE_VERSION=16
export NODE_VERSION_PRECISE=16.13.1
export NODE_VERSION=14
export NODE_VERSION_PRECISE=14.16.1
# SpacemanDMM git tag
export SPACEMAN_DMM_VERSION=suite-1.7.1
+1
View File
@@ -1,4 +1,5 @@
@echo off
set NODE_SKIP_PLATFORM_CHECK=1
call powershell -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" Download-Node
for /f "tokens=* USEBACKQ" %%s in (`
call powershell -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" Get-Path
+2 -2
View File
@@ -30,8 +30,8 @@ if ($Env:TG_BOOTSTRAP_CACHE) {
$Cache = $Env:TG_BOOTSTRAP_CACHE
}
$NodeVersion = Extract-Variable -Path "$BaseDir\..\..\dependencies.sh" -Key "NODE_VERSION_PRECISE"
$NodeSource = "https://nodejs.org/download/release/v$NodeVersion/win-x86/node.exe"
$NodeTargetDir = "$Cache\node-v$NodeVersion"
$NodeSource = "https://nodejs.org/download/release/v$NodeVersion/win-x64/node.exe"
$NodeTargetDir = "$Cache\node-v$NodeVersion-x64"
$NodeTarget = "$NodeTargetDir\node.exe"
## Just print the path and exit