@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: v202606281559 (commit fea59c7)
echo Starting "%BIN%", logging to "%LOG%"
"%BIN%" >> "%LOG%" 2>&1
echo Exit code: %ERRORLEVEL% >> "%LOG%"
