skyrama_tui/run_game.bat

17 lines
427 B
Batchfile
Raw Permalink Normal View History

2026-06-04 20:51:20 +03:00
@echo off
setlocal EnableDelayedExpansion
cd /d "%~dp0"
set "SKYRAMA_DSN=skyramaUser:Skyrama1234.@tcp(127.0.0.1:3306)/skyrama_clone?parseTime=true"
if not exist skyrama.exe (
echo [*] skyrama.exe not found, building...
go build -o skyrama.exe .\cmd\skyrama\
if errorlevel 1 ( echo [ERROR] Build failed. & pause & exit /b 1 )
)
skyrama.exe
echo.
echo [Skyrama exited - press any key to close]
pause >nul
endlocal