2026-09-15 18:13:46 +07:00
|
|
|
@echo off
|
|
|
|
|
setlocal EnableExtensions
|
|
|
|
|
cd /d "%~dp0"
|
2026-10-29 03:38:17 +07:00
|
|
|
title Ananta Private Server (Native Go Engine)
|
2026-09-15 18:13:46 +07:00
|
|
|
|
2026-10-29 03:38:17 +07:00
|
|
|
if not exist ananta-server.exe (
|
|
|
|
|
echo [BUILD] Compiling ananta-server.exe with Go...
|
|
|
|
|
go build -o ananta-server.exe ./cmd/ananta-server
|
|
|
|
|
if errorlevel 1 (
|
|
|
|
|
echo [ERROR] Go build failed.
|
|
|
|
|
pause
|
|
|
|
|
exit /b 1
|
|
|
|
|
)
|
2026-09-15 18:13:46 +07:00
|
|
|
)
|
|
|
|
|
|
2026-10-29 03:38:17 +07:00
|
|
|
ananta-server.exe
|
2026-09-15 18:13:46 +07:00
|
|
|
set "rc=%errorlevel%"
|
|
|
|
|
if not "%rc%"=="0" pause
|
|
|
|
|
exit /b %rc%
|