launcher update

This commit is contained in:
GetParanoid 2026-04-14 04:44:44 -07:00
parent b86c856898
commit 741e42caa4

View file

@ -1,17 +1,47 @@
@echo off @echo off
echo "Updating Modpack & Launching SPT..." setlocal EnableDelayedExpansion
for /f %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
set "RESET=%ESC%[0m"
set "BOLD=%ESC%[1m"
set "DIM=%ESC%[2m"
set "CYAN=%ESC%[96m"
set "GREEN=%ESC%[92m"
set "YELLOW=%ESC%[93m"
set "MAGENTA=%ESC%[95m"
set "GRAY=%ESC%[90m"
title SPT Updater
cls
echo.
echo %CYAN%%BOLD%==================================================%RESET%
echo %CYAN%%BOLD% SPT Modpack Updater ^& Launcher %RESET%
echo %CYAN%%BOLD%==================================================%RESET%
echo.
echo %MAGENTA%[1/4]%RESET% %BOLD%Resetting local changes...%RESET%
git reset --hard HEAD git reset --hard HEAD
echo.
echo "Cleaning up untracked files..." echo %MAGENTA%[2/4]%RESET% %BOLD%Cleaning untracked files...%RESET%
git clean -fd git clean -fd
echo.
echo "Pulling latest changes..." echo %MAGENTA%[3/4]%RESET% %BOLD%Pulling latest changes...%RESET%
git pull origin main git pull origin main
echo.
echo "Launching SPT..." echo %MAGENTA%[4/4]%RESET% %BOLD%Launching SPT...%RESET%
start "" /d "%~dp0SPT" "%~dp0SPT\SPT.Launcher.exe" start "" /d "%~dp0SPT" "%~dp0SPT\SPT.Launcher.exe"
echo %GREEN% ^> Launcher started successfully%RESET%
echo.
echo "Closing in 5 seconds..." echo %CYAN%%BOLD%==================================================%RESET%
timeout /t 5 /nobreak >nul for /l %%i in (5,-1,1) do (
exit <nul set /p "=%ESC%[2K%ESC%[1G %GRAY%Closing in %YELLOW%%BOLD%%%i%RESET%%GRAY% second(s)...%RESET%"
timeout /t 1 /nobreak >nul
)
echo.
echo %CYAN%%BOLD%==================================================%RESET%
exit