forked from chengazhen/cursor-auto-free
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
32 lines (26 loc) · 700 Bytes
/
Copy pathbuild.bat
File metadata and controls
32 lines (26 loc) · 700 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
@echo off
set PYTHONWARNINGS=ignore::SyntaxWarning:DrissionPage
echo Building Cursor Keep Alive...
:: Check if virtual environment exists
if not exist "venv" (
python -m venv venv
if errorlevel 1 (
echo Failed to create virtual environment!
exit /b 1
)
)
:: Activate virtual environment and wait for activation to complete
call venv\Scripts\activate.bat
timeout /t 2 /nobreak > nul
:: Install dependencies
echo Installing dependencies...
python -m pip install --upgrade pip
pip install -r requirements.txt
:: Run build script
echo Starting build process...
python build.py
:: Deactivate virtual environment
deactivate
:: Keep window open
echo Build completed!
pause