XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: use raw running in update and start script if node is new enough (#2749)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2749 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

ea9012bd
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +20 -10
Modified UPDATE AND START SERVER.bat +10 -5
@@ -14,13 +14,18 @@ if %errorlevel% == 0 (
14 14 )
15 15
16 16 echo Updating dependencies...
17 call npm i --omit=dev
18
19 call npm run build
17 node scripts/raw-precheck.js > NUL
20 18 if %errorlevel% == 0 (
21 call npm run start
22 echo SpaceNinjaServer seems to have crashed.
19 call npm i --omit=dev --omit=optional
20 call npm run raw
21 ) else (
22 call npm i --omit=dev
23 call npm run build
24 if %errorlevel% == 0 (
25 call npm run start
26 )
23 27 )
28 echo SpaceNinjaServer seems to have crashed.
24 29 )
25 30
26 31 :a
Modified UPDATE AND START SERVER.sh +10 -5
@@ -14,11 +14,16 @@ if [ $? -eq 0 ]; then
14 14 fi
15 15
16 16 echo "Updating dependencies..."
17 npm i --omit=dev
18
19 npm run build
17 node scripts/raw-precheck.js > /dev/null
20 18 if [ $? -eq 0 ]; then
21 npm run start
22 echo "SpaceNinjaServer seems to have crashed."
19 npm i --omit=dev --omit=optional
20 npm run raw
21 else
22 npm i --omit=dev
23 npm run build
24 if [ $? -eq 0 ]; then
25 npm run start
26 fi
23 27 fi
28 echo "SpaceNinjaServer seems to have crashed."
24 29 fi