18 lines
467 B
Batchfile
18 lines
467 B
Batchfile
@echo off
|
|
setlocal
|
|
where node.exe >nul 2>nul
|
|
if errorlevel 1 goto bundled
|
|
node.exe "%~dp0scripts\service.cjs" start
|
|
goto finished
|
|
:bundled
|
|
set "ORDER_NODE=%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\bin\node.exe"
|
|
if not exist "%ORDER_NODE%" goto missing
|
|
"%ORDER_NODE%" "%~dp0scripts\service.cjs" start
|
|
goto finished
|
|
:missing
|
|
echo Node.js 22+ is required. Install from https://nodejs.org
|
|
pause
|
|
exit /b 1
|
|
:finished
|
|
if errorlevel 1 pause
|