add windows launch script

This commit is contained in:
rambros 2026-03-19 16:44:15 +05:30
parent 6918c5e2a5
commit d9b50eeb89

25
launch.bat Normal file
View file

@ -0,0 +1,25 @@
@echo off
setlocal
cd /d "%~dp0"
echo Disco Reaper -- unified Windows launcher
IF NOT EXIST "venv" (
echo Virtual environment not found. Creating...
python -m venv venv
IF ERRORLEVEL 1 (
echo Error: Failed to create virtual environment. Ensure Python is installed and added to PATH.
pause
exit /b 1
)
call venv\Scripts\activate.bat
IF EXIST "requirements.txt" (
echo Installing requirements...
python -m pip install --upgrade pip -q
pip install -r requirements.txt -q
)
) ELSE (
call venv\Scripts\activate.bat
)
python disco-reaper.py %*