mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-10 00:08:19 +00:00
* Juke Build 0.9.0 * Fix a small bug with build.js * Distill cmds * Return sonar * Revert those build.cmd changes * Some improvements * Treat all sonar warnings as errors because they should fail the sonar target * Do not clean up bootstrap cache because it locks up on removing it
27 lines
758 B
Batchfile
27 lines
758 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 %*
|
|
goto exit_with_last_error_level
|
|
)
|
|
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
|
|
`) do (
|
|
set "PATH=%%s;%PATH%"
|
|
)
|
|
where node.exe >nul 2>nul
|
|
if %errorlevel% == 0 (
|
|
echo | set /p printed_str="Using vendored Node "
|
|
call node.exe --version
|
|
call node.exe %*
|
|
goto exit_with_last_error_level
|
|
)
|
|
echo "node.bat: Failed to bootstrap Node!"
|
|
%COMSPEC% /c exit 1
|
|
|
|
:exit_with_last_error_level
|
|
if not %errorlevel% == 0 %COMSPEC% /c exit %errorlevel% >nul
|