talemate/update.sh
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

34 lines
No EOL
611 B
Bash

#!/bin/sh
echo "Checking git repository..."
# Initialize git if needed
if [ ! -d ".git" ]; then
git init
git remote add origin https://github.com/vegu-ai/talemate
fi
# Pull latest changes
git pull
# Activate virtual environment
. talemate_env/bin/activate
# Install dependencies with poetry
echo "Updating virtual environment..."
python3 -m poetry install
echo "Virtual environment updated!"
# Update npm packages
echo "Updating npm packages..."
cd talemate_frontend
npm install
echo "NPM packages updated"
# Build frontend
echo "Building frontend..."
npm run build
cd ..
echo "Update complete"