Update build_appimage.sh

This commit is contained in:
MacRimi
2025-11-21 18:53:30 +01:00
parent 5781d532a4
commit cff2c12d70

View File

@@ -282,7 +282,15 @@ if [ -f "$APP_DIR/proxmenux-monitor.png" ]; then
fi fi
echo "📦 Installing Python dependencies..." echo "📦 Installing Python dependencies..."
# Phase 1: Install googletrans with its old dependencies
pip3 install --target "$APP_DIR/usr/lib/python3/dist-packages" \ pip3 install --target "$APP_DIR/usr/lib/python3/dist-packages" \
googletrans==4.0.0-rc1 \
httpx==0.13.3 \
httpcore==0.9.1 \
h11==0.9.0 || true
# Phase 2: Install modern Flask/WebSocket dependencies (will upgrade h11 and related packages)
pip3 install --target "$APP_DIR/usr/lib/python3/dist-packages" --upgrade --no-deps \
flask \ flask \
flask-cors \ flask-cors \
psutil \ psutil \
@@ -290,14 +298,14 @@ pip3 install --target "$APP_DIR/usr/lib/python3/dist-packages" \
PyJWT \ PyJWT \
pyotp \ pyotp \
segno \ segno \
googletrans==4.0.0-rc1 \ beautifulsoup4
httpx==0.13.3 \
httpcore==0.9.1 \ # Phase 3: Install WebSocket with newer h11
beautifulsoup4 \ pip3 install --target "$APP_DIR/usr/lib/python3/dist-packages" --upgrade \
'h11>=0.14.0,<1.0.0' \ h11>=0.14.0 \
'wsproto>=1.2.0' \ wsproto>=1.2.0 \
'simple-websocket>=0.10.0' \ simple-websocket>=0.10.0 \
'flask-sock>=0.6.0' flask-sock>=0.6.0
cat > "$APP_DIR/usr/lib/python3/dist-packages/cgi.py" << 'PYEOF' cat > "$APP_DIR/usr/lib/python3/dist-packages/cgi.py" << 'PYEOF'
from typing import Tuple, Dict from typing import Tuple, Dict