skyrama_tui/run_admin.bat

17 lines
415 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 admin.exe (
echo [*] admin.exe not found, building...
go build -o admin.exe .\cmd\admin\
if errorlevel 1 ( echo [ERROR] Build failed. & pause & exit /b 1 )
)
admin.exe
echo.
echo [Admin exited - press any key to close]
pause >nul
endlocal