@echo off
setlocal
cd /d %~dp0
if not exist logs mkdir logs
if "%GOTRACEBACK%"=="" set GOTRACEBACK=crash
set "BIN=bin/XXTLanControl-backend-windows-amd64.exe"
set "LOG=logs/backend.log"
echo Version: v202605100945 (commit b5f7834)
echo Starting "%BIN%", logging to "%LOG%"
"%BIN%" >> "%LOG%" 2>&1
echo Exit code: %ERRORLEVEL% >> "%LOG%"
