mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-13 10:23:15 +00:00
* Simplified Node Bootstrap mk. II (#56797) Script tools/bootstrap/node_.ps1 will now only download a single node.exe file (32-bit variant) and nothing more. Since we don't need to unzip, we removed a dependency on a .NET component. Removed logging, because TGS4 already logs stdout/err, while all this fancy output redirection breaks on older PowerShell versions. node.bat uses a system-wide node exe if available CBT will not mislead users by printing things like "missing tgstation.dmb" * Simplified Node Bootstrap mk. II Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
10 lines
246 B
Batchfile
10 lines
246 B
Batchfile
@echo off
|
|
where node.exe >nul 2>nul
|
|
if %errorlevel% == 0 (
|
|
echo | set /p printed_str="Using system-wide Node "
|
|
call node.exe --version
|
|
call node.exe %*
|
|
) else (
|
|
call powershell.exe -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" %*
|
|
)
|