mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-09-01 09:59:08 +00:00
35 lines
No EOL
722 B
Batchfile
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 |