Files
Ananta-ps/START.cmd
T

20 lines
400 B
Batchfile

@echo off
setlocal EnableExtensions
cd /d "%~dp0"
title Ananta Private Server (Native Go Engine)
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
)
)
ananta-server.exe
set "rc=%errorlevel%"
if not "%rc%"=="0" pause
exit /b %rc%