Files
mrleo1nidandClaude Sonnet 5.5 f49ee90477 feat: browser access (allowed_origins, CORS with Private Network Access), job cancel, Tomie/Unity adapters, benchmark
Includes earlier uncommitted work: Tomie and Unity adapters, benchmark, structured output, call metrics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 18:59:28 +03:00

33 lines
1.0 KiB
Batchfile

@echo off
setlocal
cd /d "%~dp0..\.."
if exist ".venv\Scripts\python.exe" goto dependencies
where py >nul 2>nul
if not errorlevel 1 (
py -3 -m venv .venv
) else (
python -m venv .venv
)
if errorlevel 1 goto failed
:dependencies
if exist ".venv\translator-installed" goto run
".venv\Scripts\python.exe" -m pip install -e .
if errorlevel 1 goto failed
type nul > ".venv\translator-installed"
:run
".venv\Scripts\python.exe" -c "import UnityPy" >nul 2>nul
if not errorlevel 1 goto configured
".venv\Scripts\python.exe" -m pip install -e ".[unity]"
if errorlevel 1 goto failed
:configured
if not exist benchmark.json copy /y benchmark.example.json benchmark.json >nul
".venv\Scripts\python.exe" -X utf8 -m local_translator.benchmark --config benchmark.json %*
if errorlevel 1 goto failed
echo Benchmark complete. Results are in data\benchmarks.
if not defined LOCAL_TRANSLATOR_NO_PAUSE pause
exit /b 0
:failed
echo Benchmark failed. See the error above. Partial results are preserved.
if not defined LOCAL_TRANSLATOR_NO_PAUSE pause
exit /b 1