-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
50 lines (44 loc) · 1.12 KB
/
setup.bat
File metadata and controls
50 lines (44 loc) · 1.12 KB
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
43
44
45
46
47
48
49
50
@echo off
echo ============================================
echo PDF Toolkit - Quick Setup
echo ============================================
echo.
REM Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.10+ from https://python.org
pause
exit /b 1
)
echo [1/4] Creating virtual environment...
python -m venv venv
if errorlevel 1 (
echo ERROR: Failed to create virtual environment
pause
exit /b 1
)
echo [2/4] Activating virtual environment...
call venv\Scripts\activate.bat
echo [3/4] Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
echo [4/4] Setting up project structure...
python setup_project.py
echo.
echo ============================================
echo Setup complete!
echo ============================================
echo.
echo To run the application:
echo 1. Open PowerShell in this folder
echo 2. Run: .\venv\Scripts\Activate
echo 3. Run: python src\main.py
echo.
echo Or simply run: run.bat
echo.
pause