mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Compiling the servers works again (#82420)
"Compat" node version didn't work at all
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user