Enable tray icon and fix build scripts
CI / lint (push) Successful in 25s
CI / security (push) Successful in 15s
CI / test (push) Successful in 30s
CI / build (push) Successful in 14s
CI / e2e (push) Failing after 25s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled

This commit is contained in:
2026-07-26 12:41:29 -04:00
parent 1b4a6ff0cf
commit ed50aef6f7
11 changed files with 18641 additions and 24 deletions
+14 -5
View File
@@ -11,7 +11,7 @@ echo "========================================"
echo ""
# ── 1. Vérifier les prérequis ─────────────────────────────────
echo "[1/4] Verifying prerequisites..."
echo "[1/5] Verifying prerequisites..."
command -v cargo >/dev/null 2>&1 || { echo "❌ Rust/Cargo not found. Install: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"; exit 1; }
command -v tauri >/dev/null 2>&1 || cargo install tauri-cli
@@ -22,7 +22,7 @@ fi
echo "✅ Dependencies OK"
# ── 2. Préparer Python 3.11 ────────────────────────────────────
echo "[2/4] Preparing Python environment..."
echo "[2/5] Preparing Python environment..."
python3 -m venv python-embed/venv
source python-embed/venv/bin/activate
pip install --upgrade pip -q
@@ -30,13 +30,22 @@ pip install -r ../backend/requirements.txt -q
echo "✅ Python environment ready"
# ── 3. Build Tauri ────────────────────────────────────────────
echo "[3/4] Building Tauri application..."
echo "[3/5] Building Tauri application..."
cargo tauri build --target x86_64-unknown-linux-gnu --bundles deb,appimage
echo "✅ Build successful"
# ── 4. Résultats ───────────────────────────────────────────────
# ── 4. Copier le runtime à côté de l'exécutable ───────────────
OUTDIR="target/x86_64-unknown-linux-gnu/release"
echo "[4/4] Results:"
echo "[4/5] Copying runtime to $OUTDIR..."
rm -rf "$OUTDIR/python-embed" "$OUTDIR/backend" "$OUTDIR/frontend"
cp -r python-embed "$OUTDIR/"
cp -r ../backend "$OUTDIR/"
cp -r ../frontend "$OUTDIR/"
echo "✅ Runtime + frontend copied"
# ── 5. Résultats ───────────────────────────────────────────────
OUTDIR="target/x86_64-unknown-linux-gnu/release"
echo "[5/5] Results:"
ls -lh "$OUTDIR/bundle/deb/"*.deb 2>/dev/null
ls -lh "$OUTDIR/bundle/appimage/"*.AppImage 2>/dev/null
echo ""