fix: revue complète obsigate-desktop — 6 correctifs pour le prochain build
CI / lint (push) Successful in 24s
CI / security (push) Successful in 13s
CI / test (push) Successful in 27s
CI / build (push) Successful in 9s
CI / e2e (push) Failing after 26s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
CI / lint (push) Successful in 24s
CI / security (push) Successful in 13s
CI / test (push) Successful in 27s
CI / build (push) Successful in 9s
CI / e2e (push) Failing after 26s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
1. main.rs: .current_dir(exe_dir) pour que Python trouve backend/ (pas le cwd hérité) 2. build-windows.bat: dir bundles pointe vers target/x86_64-.../release (était target/release) 3. build-windows.bat: supprimer étape 3 inutile (frontend-static) — Tauri utilise ../frontend 4. capabilities/default.json: requis par Tauri v2 (permissions plugins) 5. tauri.conf.json + Cargo.toml: retirer updater (placeholder sans clé) 6. .gitignore: ajouter desktop/target/, python-embed/, frontend-static/ 7. build-linux.sh: mêmes corrections (bundles path, simplification)
This commit is contained in:
+10
-20
@@ -11,7 +11,7 @@ echo "========================================"
|
||||
echo ""
|
||||
|
||||
# ── 1. Vérifier les prérequis ─────────────────────────────────
|
||||
echo "[1/6] Verifying prerequisites..."
|
||||
echo "[1/4] 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,32 +22,22 @@ fi
|
||||
echo "✅ Dependencies OK"
|
||||
|
||||
# ── 2. Préparer Python 3.11 ────────────────────────────────────
|
||||
echo "[2/6] Preparing Python environment..."
|
||||
echo "[2/4] Preparing Python environment..."
|
||||
python3 -m venv python-embed/venv
|
||||
source python-embed/venv/bin/activate
|
||||
pip install --upgrade pip -q
|
||||
pip install -r ../backend/requirements.txt -q
|
||||
echo "✅ Python environment ready"
|
||||
|
||||
# ── 3. Copier le frontend ─────────────────────────────────────
|
||||
echo "[3/6] Copying frontend..."
|
||||
rm -rf frontend-static
|
||||
cp -r ../frontend frontend-static
|
||||
echo "✅ Frontend copied"
|
||||
|
||||
# ── 4. Icônes ──────────────────────────────────────────────────
|
||||
echo "[4/6] Generating icons..."
|
||||
# Placeholder — tauri icon generator
|
||||
echo "✅ Icons OK"
|
||||
|
||||
# ── 5. Build Tauri ────────────────────────────────────────────
|
||||
echo "[5/6] Building Tauri application..."
|
||||
# ── 3. Build Tauri ────────────────────────────────────────────
|
||||
echo "[3/4] Building Tauri application..."
|
||||
cargo tauri build --target x86_64-unknown-linux-gnu --bundles deb,appimage
|
||||
echo "✅ Build successful"
|
||||
|
||||
# ── 6. Résultats ───────────────────────────────────────────────
|
||||
echo "[6/6] Results:"
|
||||
ls -lh target/release/bundle/deb/*.deb 2>/dev/null
|
||||
ls -lh target/release/bundle/appimage/*.AppImage 2>/dev/null
|
||||
# ── 4. Résultats ───────────────────────────────────────────────
|
||||
OUTDIR="target/x86_64-unknown-linux-gnu/release"
|
||||
echo "[4/4] Results:"
|
||||
ls -lh "$OUTDIR/bundle/deb/"*.deb 2>/dev/null
|
||||
ls -lh "$OUTDIR/bundle/appimage/"*.AppImage 2>/dev/null
|
||||
echo ""
|
||||
echo "✅ Done! Check target/release/bundle/"
|
||||
echo "✅ Done! Check $OUTDIR/bundle/"
|
||||
|
||||
Reference in New Issue
Block a user