talemate/update.bat
vegu-ai-tools b722abfcfb py 312 py 313 support
remove unreliant cuda detection and just lock poetry with cuda
2025-05-04 19:36:24 +03:00

35 lines
No EOL
722 B
Batchfile

@echo off
echo Checking git repository...
REM check if git repository is initialized and initialize if not
if not exist .git (
git init
git remote add origin https://github.com/vegu-ai/talemate
)
REM pull the latest changes from git repository
git pull
REM activate the virtual environment
call talemate_env\Scripts\activate
REM use poetry to install dependencies
echo Updating virtual environment...
python -m poetry install
echo Virtual environment updated!
REM updating npm packages
echo Updating npm packages...
cd talemate_frontend
call npm install
echo NPM packages updated
REM build the frontend
echo Building frontend...
call npm run build
cd ..
echo Update complete - You may close this window now.
pause