-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.bat
More file actions
54 lines (47 loc) · 1.07 KB
/
run.bat
File metadata and controls
54 lines (47 loc) · 1.07 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
51
52
53
54
@echo off
REM Fable Book Exporter - Windows Launcher
REM This script sets up and runs the Fable Book Exporter
echo.
echo ================================
echo FABLE BOOK EXPORTER
echo Windows Launcher
echo ================================
echo.
REM Check if uv is installed
uv --version >nul 2>&1
if errorlevel 1 (
echo ERROR: uv is not installed
echo.
echo Please install uv from https://docs.astral.sh/uv/getting-started/
echo Or run: pip install uv
pause
exit /b 1
)
REM Check if virtual environment exists
if not exist ".venv\" (
echo Setting up Python environment with uv...
echo.
uv venv
if errorlevel 1 (
echo ERROR: Failed to create virtual environment
pause
exit /b 1
)
)
REM Activate virtual environment
call .venv\Scripts\activate.bat
REM Install dependencies
echo Installing dependencies...
echo.
uv pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
REM Run the CLI
echo.
echo Starting Fable Book Exporter...
echo.
python cli.py
pause