2025-01-20 12:22:34 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
echo Updating SpaceNinjaServer...
|
2025-02-02 14:26:13 +01:00
|
|
|
git config remote.origin.url https://openwf.io/SpaceNinjaServer.git
|
|
|
|
git fetch --prune
|
|
|
|
git reset --hard origin/main
|
2025-01-20 12:22:34 +01:00
|
|
|
|
|
|
|
if exist static\data\0\ (
|
|
|
|
echo Updating stripped assets...
|
|
|
|
cd static\data\0\
|
|
|
|
git pull
|
|
|
|
cd ..\..\..\
|
|
|
|
)
|
|
|
|
|
|
|
|
echo Updating dependencies...
|
|
|
|
call npm i
|
|
|
|
|
|
|
|
call npm run build
|
2025-03-03 05:48:54 -08:00
|
|
|
if %errorlevel% == 0 (
|
|
|
|
call npm run start
|
|
|
|
echo SpaceNinjaServer seems to have crashed.
|
|
|
|
)
|
2025-01-20 12:22:34 +01:00
|
|
|
:a
|
|
|
|
pause > nul
|
|
|
|
goto a
|