Commit Graph
18 Commits
Author SHA1 Message Date
bruno 8212a9453a fix: erreurs de compilation — MutexGuard Send, i32/u32→f64, exe_dir Option, warnings
CI / lint (push) Successful in 22s
CI / security (push) Successful in 16s
CI / test (push) Successful in 27s
CI / build (push) Successful in 6s
CI / e2e (push) Failing after 20s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- check_backend_health: dropper MutexGuard avant .await (Send bound)
- pos.x/y (i32) → as f64, size.width/height (u32) → as f64
- current_exe: .ok().and_then() au lieu de .and_then() (Option vs Result)
- Supprimer state_clone unused + _app pour save_window_state
2026-07-26 13:01:43 -04:00
bruno 704ad94cb9 fix: retirer single-instance:default des capabilities (plugin sans permissions)
CI / lint (push) Successful in 21s
CI / security (push) Successful in 13s
CI / test (push) Successful in 26s
CI / build (push) Successful in 6s
CI / e2e (push) Failing after 13s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
2026-07-26 12:58:04 -04:00
bruno 68bb9c3068 feat: Phase 1 complete — config persistante, single instance, restart, tray, logging, crash detection
CI / lint (push) Successful in 22s
CI / security (push) Successful in 12s
CI / test (push) Successful in 25s
CI / build (push) Successful in 6s
CI / e2e (push) Failing after 11s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
1. Config persistante: AppConfig (vault_path, window x/y/w/h) sauvegardé dans %APPDATA%\ObsiGate\config.json
2. Single instance: tauri-plugin-single-instance — 2e lancement focus la fenêtre existante
3. Redémarrage backend: commande restart_backend + check_backend_health + restart auto après crash
4. Tray menu: Ouvrir, À propos, Quitter + clic gauche toggle fenêtre
5. Logging: env_logger + chrono → stdout/stderr du backend capturés dans logs/backend.log
6. Crash detection: boucle de monitoring toutes les 5s, notifie l'UI si le processus meurt

Dépendances ajoutées: tauri-plugin-store, tauri-plugin-single-instance, log, env_logger, chrono
2026-07-26 12:50:09 -04:00
bruno ed50aef6f7 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
2026-07-26 12:41:29 -04:00
bruno 1b4a6ff0cf fix: ensurepip pour Python embed + CSP autorise 127.0.0.1
CI / lint (push) Successful in 24s
CI / security (push) Successful in 14s
CI / test (push) Successful in 28s
CI / build (push) Successful in 11s
CI / e2e (push) Failing after 35s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- build-windows.bat: ajouter python -m ensurepip --upgrade (Python embed n'a pas pip)
- tauri.conf.json: ajouter http://127.0.0.1:* dans toutes les directives CSP
  Sans ça, 'self' = schéma tauri://, pas le backend local → CSS/images bloqués
2026-07-26 11:32:43 -04:00
bruno 99fa464dca fix: build-windows.bat — forcer réinstall pip deps + retirer plugins.shell.scope
CI / lint (push) Successful in 24s
CI / security (push) Successful in 14s
CI / test (push) Successful in 28s
CI / build (push) Successful in 7s
CI / e2e (push) Failing after 35s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- build-windows.bat: supprimer python-embed/ à chaque build (plus de skip si python.exe existe)
  Sans ça, uvicorn manquait car installé une seule fois puis jamais recopié
- tauri.conf.json: retirer plugins.shell.scope — déprécié en Tauri v2, géré par capabilities
2026-07-26 11:23:55 -04:00
bruno fd41175ad8 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
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)
2026-07-26 11:06:53 -04:00
bruno fc93f550e0 fix: résoudre python-embed relativement à l'exe + copier runtime dans output dir
CI / lint (push) Successful in 30s
CI / security (push) Successful in 16s
CI / test (push) Successful in 29s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 42s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- main.rs: utiliser current_exe().parent() au lieu de ./ relatif au cwd
- build-windows.bat: étape 5b qui copie python-embed/ et backend/ dans target/release
2026-07-26 11:02:57 -04:00
bruno f3818181d4 fix: lifetime error — ajouter ; après MutexGuard pour dropper le temporaire avant state
CI / lint (push) Successful in 25s
CI / security (push) Successful in 17s
CI / test (push) Successful in 31s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 26s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
Le compilateur suggérait: consider adding semicolon after the expression
so its temporaries are dropped sooner (E0597)
2026-07-26 10:46:59 -04:00
bruno 727ca278ca fix: icon.png en mode RGBA (Tauri exige canal alpha)
CI / lint (push) Successful in 26s
CI / security (push) Successful in 16s
CI / test (push) Successful in 34s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 21s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
convert('RGBA') au lieu de RGB — le proc macro tauri-build rejette les PNG sans alpha
2026-07-26 10:44:36 -04:00
bruno 90f21d35cf fix: convertir icon.png en vrai PNG (était JPEG) + .gitattributes pour protéger les binaires
CI / lint (push) Successful in 24s
CI / security (push) Successful in 15s
CI / test (push) Successful in 28s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 33s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
Le générateur produisait un JPEG sauvegardé en .png, corrompu par Git CRLF sur Windows.
Ajout de .gitattributes avec binary pour *.png, *.ico, *.exe, etc.
2026-07-26 10:42:30 -04:00
bruno 0d0a8c013f feat: ajouter les icônes desktop (ico, png, icns) générées depuis le logo ObsiGate
CI / lint (push) Successful in 35s
CI / security (push) Successful in 16s
CI / test (push) Successful in 29s
CI / build (push) Successful in 15s
CI / e2e (push) Failing after 17s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
2026-07-26 10:39:23 -04:00
bruno 7f24fe7d01 fix: build Windows — nettoyer python-embed avant extraction + supprimer champs NSIS invalides
CI / lint (push) Successful in 29s
CI / security (push) Successful in 18s
CI / test (push) Successful in 29s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 16s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- build-windows.bat: rmdir python-embed avant téléchargement (évite conflit Expand-Archive)
- tauri.conf.json: retirer shortcutName et createDesktopShortcut (n'existent pas dans NsisConfig Tauri v2)
2026-07-26 10:32:52 -04:00
bruno 301c325af7 Refactor frontend into ES modules with modern tooling
CI / lint (push) Successful in 25s
CI / security (push) Successful in 19s
CI / test (push) Successful in 29s
CI / build (push) Successful in 8s
CI / e2e (push) Failing after 21s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
2026-07-26 10:29:19 -04:00
bruno 29d1332178 fix: build Windows — URL Python embed 3.11.9 + supprimer wix:null conflit Tauri v2
CI / lint (push) Successful in 24s
CI / security (push) Successful in 14s
CI / test (push) Successful in 28s
CI / build (push) Successful in 6s
CI / e2e (push) Failing after 19s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- build-windows.bat: Python 3.11.15→3.11.9 (dernière version avec binaires embed)
- tauri.conf.json: supprimer "wix": null (causait conflit anyOf avec nsis dans Tauri v2)
2026-07-26 10:25:32 -04:00
bruno 23fdc4d8f2 docs: utiliser Scoop pour les prérequis Windows dans les README desktop
CI / lint (push) Successful in 25s
CI / security (push) Successful in 14s
CI / test (push) Successful in 28s
CI / build (push) Successful in 6s
CI / e2e (push) Failing after 25s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- desktop/README.md: section Windows réécrite avec scoop install rustup curl git
- README.md: build from source Windows mis à jour avec Scoop
2026-07-26 10:10:48 -04:00
bruno cf30dfb48c docs: ajouter section Desktop (Tauri) dans README principal + refonte desktop/README.md
CI / lint (push) Successful in 56s
CI / security (push) Successful in 14s
CI / test (push) Successful in 28s
CI / build (push) Successful in 7s
CI / e2e (push) Failing after 28s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- README.md: nouvelle section Desktop avec install binaires (.deb/.AppImage/.msi), build from source, architecture
- desktop/README.md: refonte complète — install binaires, build, démarrage, config vaults, dépannage
2026-07-26 10:01:36 -04:00
bruno db72e6f055 feat: Tauri desktop shell — Rust backend + config files + build scripts
CI / lint (push) Successful in 30s
CI / security (push) Successful in 13s
CI / test (push) Successful in 27s
CI / build (push) Successful in 5s
CI / e2e (push) Failing after 13s
- desktop/Cargo.toml: Tauri + plugins (dialog, notification, fs, updater)
- desktop/tauri.conf.json: Windows (.msi/.nsis) + Linux (.deb/.AppImage) config
- desktop/src/main.rs: spawn Python backend, health check, tray icon, commands
- desktop/build.rs: Tauri build hook
- desktop/python-embed/sidecar.py: uvicorn launcher with port auto-detect
- build-windows.bat: automated Windows build with Python embed download
- build-linux.sh: automated Linux build with venv
- desktop/README.md: architecture doc + usage guide
- desktop/validate-structure.sh: CI validation script
- ROADMAP.md: #77 Tauri Desktop section added
2026-07-24 18:01:33 -04:00