add windows launch script
This commit is contained in:
parent
6918c5e2a5
commit
d9b50eeb89
1 changed files with 25 additions and 0 deletions
25
launch.bat
Normal file
25
launch.bat
Normal 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 %*
|
||||||
Loading…
Add table
Reference in a new issue