-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
42 lines (35 loc) · 981 Bytes
/
Copy pathsetup.bat
File metadata and controls
42 lines (35 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
setlocal
cd /d "%~dp0"
echo ========================================
echo UnityScraper Setup
echo ========================================
echo.
where python >nul 2>nul
if errorlevel 1 (
echo Python was not found on PATH.
echo Install Python 3.10 or newer, then run this file again.
exit /b 1
)
python -c "import sys; raise SystemExit(0 if sys.version_info >= (3, 10) else 1)"
if errorlevel 1 (
echo UnityScraper requires Python 3.10 or newer.
python --version
exit /b 1
)
if not exist ".venv\Scripts\python.exe" (
echo Creating virtual environment...
python -m venv .venv
if errorlevel 1 exit /b 1
)
echo Installing runtime dependencies...
".venv\Scripts\python.exe" -m pip install --upgrade pip
if errorlevel 1 exit /b 1
".venv\Scripts\python.exe" -m pip install -r requirements.txt
if errorlevel 1 exit /b 1
echo.
echo Setup complete.
echo Run UnityScraper with:
echo .venv\Scripts\python.exe desktop_app.py
echo.
endlocal