chore: use raw running in update and start script if node is new enough (#2749)
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:
parent
13400b6d83
commit
ea9012bd56
@ -14,13 +14,18 @@ if %errorlevel% == 0 (
|
|||||||
)
|
)
|
||||||
|
|
||||||
echo Updating dependencies...
|
echo Updating dependencies...
|
||||||
call npm i --omit=dev
|
node scripts/raw-precheck.js > NUL
|
||||||
|
|
||||||
call npm run build
|
|
||||||
if %errorlevel% == 0 (
|
if %errorlevel% == 0 (
|
||||||
call npm run start
|
call npm i --omit=dev --omit=optional
|
||||||
echo SpaceNinjaServer seems to have crashed.
|
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
|
:a
|
||||||
|
|||||||
@ -14,11 +14,16 @@ if [ $? -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Updating dependencies..."
|
echo "Updating dependencies..."
|
||||||
npm i --omit=dev
|
node scripts/raw-precheck.js > /dev/null
|
||||||
|
|
||||||
npm run build
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
npm run start
|
npm i --omit=dev --omit=optional
|
||||||
echo "SpaceNinjaServer seems to have crashed."
|
npm run raw
|
||||||
|
else
|
||||||
|
npm i --omit=dev
|
||||||
|
npm run build
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
npm run start
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
echo "SpaceNinjaServer seems to have crashed."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user