-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
55 lines (45 loc) · 1.31 KB
/
run.bat
File metadata and controls
55 lines (45 loc) · 1.31 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
55
@echo off
setlocal enabledelayedexpansion
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed. Please install Python and add it to PATH.
exit /b 1
)
REM Check if Git is installed
git --version >nul 2>&1
if %errorlevel% neq 0 (
echo Git is not installed. Please install Git and add it to PATH.
exit /b 1
)
REM Check for updates
echo Checking for updates...
git pull
REM Check if virtual environment exists
if not exist .venv (
echo Creating virtual environment...
python -m venv .venv
) else (
echo Virtual environment already exists.
)
REM Activate virtual environment
call .venv\Scripts\activate.bat
REM Check if requirements.txt exists
if exist requirements.txt (
echo Installing dependencies...
pip install -r requirements.txt
) else (
echo requirements.txt does not exist. Skipping dependency installation.
)
echo "Setup complete."
echo "Please make sure you have created OpenRouter API key and set it in the environment variables. (.env file)"
REM Run src/ui.py
if exist src\ui.py (
echo Running src/ui.py...
python src\ui.py
) else (
echo src\ui.py does not exist. Please make sure the file exists.
)
REM Deactivate virtual environment
deactivate
pause