chore: use raw running in update and start script if node is new enough (#2749)
Some checks failed
Build Docker image / docker-arm64 (push) Waiting to run
Build / build (push) Has been cancelled
Build Docker image / docker-amd64 (push) Has been cancelled

Reviewed-on: #2749
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-09-04 23:42:45 -07:00 committed by Sainan
parent 13400b6d83
commit ea9012bd56
2 changed files with 20 additions and 10 deletions

View File

@ -14,13 +14,18 @@ if %errorlevel% == 0 (
)
echo Updating dependencies...
call npm i --omit=dev
call npm run build
node scripts/raw-precheck.js > NUL
if %errorlevel% == 0 (
call npm run start
echo SpaceNinjaServer seems to have crashed.
call npm i --omit=dev --omit=optional
call npm run raw
) else (
call npm i --omit=dev
call npm run build
if %errorlevel% == 0 (
call npm run start
)
)
echo SpaceNinjaServer seems to have crashed.
)
:a

View File

@ -14,11 +14,16 @@ if [ $? -eq 0 ]; then
fi
echo "Updating dependencies..."
npm i --omit=dev
npm run build
node scripts/raw-precheck.js > /dev/null
if [ $? -eq 0 ]; then
npm run start
echo "SpaceNinjaServer seems to have crashed."
npm i --omit=dev --omit=optional
npm run raw
else
npm i --omit=dev
npm run build
if [ $? -eq 0 ]; then
npm run start
fi
fi
echo "SpaceNinjaServer seems to have crashed."
fi