#!/bin/bash # Update pyWebLayout to the latest version from git # # This script updates pyWebLayout to fix compatibility issues set -e # Exit on error echo "================================" echo "pyWebLayout Update Script" echo "================================" echo "" # Check if we're in a virtual environment if [ -z "$VIRTUAL_ENV" ]; then echo "⚠️ Warning: No virtual environment detected!" echo "It's recommended to activate your virtual environment first:" echo " source venv/bin/activate" echo "" read -p "Continue anyway? (y/N) " -n 1 -r echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1 fi fi echo "Updating pyWebLayout from git repository..." echo "" # Upgrade pyWebLayout from the git repository pip install --upgrade git+https://gitea.tourolle.paris/dtourolle/pyWebLayout@master echo "" echo "================================" echo "Update Complete!" echo "================================" echo "" echo "pyWebLayout has been updated to the latest version." echo "You can now run the application normally." echo ""