返回提交历史
Modified
UPDATE AND START SERVER.bat
+10
-5
Modified
UPDATE AND START SERVER.sh
+10
-5
XFEstudio/XFESpaceNinjaServer
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
代码差异
2 个文件
+20
-10
@@ -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
@@ -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