mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-20 05:37:54 +01:00
9c71c3bb4f
* Yarn to bun migration port * . * . * . * . * . * . * . * missed that * ... * can't have those * end of compat * port tg 91703 * we need to accept the eula * make sure to use basic * -f as JL suggested * Update dependencies.sh * push --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
28 lines
751 B
Batchfile
28 lines
751 B
Batchfile
@echo off
|
|
|
|
:: Call pwsh if available
|
|
set "powershellCmd=powershell"
|
|
where pwsh >nul 2>nul
|
|
if %errorlevel%==0 (
|
|
set "powershellCmd=pwsh"
|
|
)
|
|
|
|
call %powershellCmd% -NoLogo -ExecutionPolicy Bypass -File "%~dp0\javascript_.ps1" Download-Bun
|
|
for /f "tokens=* USEBACKQ" %%s in (`
|
|
call %powershellCmd% -NoLogo -ExecutionPolicy Bypass -File "%~dp0\javascript_.ps1" Get-Path
|
|
`) do (
|
|
set "PATH=%%s;%PATH%"
|
|
)
|
|
where bun.exe >nul 2>nul
|
|
if %errorlevel% == 0 (
|
|
echo | set /p printed_str="Using vendored Bun "
|
|
call bun.exe --version
|
|
call bun.exe %*
|
|
goto exit_with_last_error_level
|
|
)
|
|
echo "javascript.bat: Failed to bootstrap Bun!"
|
|
%COMSPEC% /c exit 1
|
|
|
|
:exit_with_last_error_level
|
|
if not %errorlevel% == 0 %COMSPEC% /c exit %errorlevel% >nul
|