build.bat 700 B

1234567891011121314151617181920212223242526272829303132
  1. @echo off
  2. set PYTHONWARNINGS=ignore::SyntaxWarning:DrissionPage
  3. echo Building Cursor Keep Alive...
  4. :: Check if virtual environment exists
  5. if not exist "venv" (
  6. python -m venv venv
  7. if errorlevel 1 (
  8. echo Failed to create virtual environment!
  9. exit /b 1
  10. )
  11. )
  12. :: Activate virtual environment and wait for activation to complete
  13. call venv\Scripts\activate.bat
  14. timeout /t 2 /nobreak > nul
  15. :: Install dependencies
  16. echo Installing dependencies...
  17. python -m pip install --upgrade pip
  18. pip install -r requirements.txt
  19. :: Run build script
  20. echo Starting build process...
  21. python build.py
  22. :: Deactivate virtual environment
  23. deactivate
  24. :: Keep window open
  25. echo Build completed!
  26. pause