| @echo off | |
| REM Windows: double-click in the repo (scripts\) or run oneshot.bat at the repo root. | |
| setlocal | |
| set "HERE=%~dp0" | |
| if exist "%HERE%app\cli.py" ( | |
| cd /d "%HERE%" | |
| ) else if exist "%HERE%..\app\cli.py" ( | |
| cd /d "%HERE%.." | |
| ) else ( | |
| echo Run this from the cloned repo: scripts\start-ui.bat | |
| echo Do not copy this file to the Desktop — use scripts\install-launcher.bat | |
| pause | |
| exit /b 1 | |
| ) | |
| if not exist ".venv\Scripts\python.exe" ( | |
| echo Creating .venv (one time)... | |
| py -3.12 -m venv .venv || python -m venv .venv | |
| .venv\Scripts\python.exe -m pip install -e ".[dev]" | |
| ) | |
| .venv\Scripts\python.exe -m app.launch | |
| if errorlevel 1 pause | |