Compiling the servers works again (#82420)

"Compat" node version didn't work at all
This commit is contained in:
Zephyr
2024-04-03 06:53:10 +00:00
committed by GitHub
parent 6eb4567b53
commit 03d0076f7d
2 changed files with 2 additions and 14 deletions
+1 -2
View File
@@ -11,9 +11,8 @@ export BYOND_MINOR=1633
export RUST_G_VERSION=3.1.0
#node version
export NODE_VERSION=14
export NODE_VERSION=20
export NODE_VERSION_LTS=20.12.0
export NODE_VERSION_COMPAT=14.16.1
# SpacemanDMM git tag
export SPACEMAN_DMM_VERSION=suite-1.8
+1 -12
View File
@@ -31,18 +31,7 @@ if ($Env:TG_BOOTSTRAP_CACHE) {
$Cache = $Env:TG_BOOTSTRAP_CACHE
}
# Get OS version
$OSVersion = (Get-WmiObject -Class Win32_OperatingSystem).Version
# Set Node version based on OS version
if ($OSVersion -gt 6.1) {
# Windows 7 is version 6.1
$NodeVersion = Extract-Variable -Path "$BaseDir\..\..\dependencies.sh" -Key "NODE_VERSION_COMPAT"
}
else {
$NodeVersion = Extract-Variable -Path "$BaseDir\..\..\dependencies.sh" -Key "NODE_VERSION_LTS"
}
$NodeVersion = Extract-Variable -Path "$BaseDir\..\..\dependencies.sh" -Key "NODE_VERSION_LTS"
$NodeSource = "https://nodejs.org/download/release/v$NodeVersion/win-x64/node.exe"
$NodeTargetDir = "$Cache\node-v$NodeVersion-x64"
$NodeTarget = "$NodeTargetDir\node.exe"