feat: desktop — connexion compte central + environnement prod/dev (#230)
CI / lint (push) Failing after 29s
CI / test (push) Skipped
CI / build (push) Skipped
CI / e2e (push) Skipped
CI / security (push) Failing after 16s

Liaison d'appareil sur og/og-dev, validation du jeton draco et ouverture de la session de l'admin local. Sélecteur prod/dev (Configuration + premier lancement), admin local par défaut admin/chab30, sans impact sur le web Docker. Inclut BUG-126 (runtime python-embed/_pth + copie de backend/frontend + signature updater opt-in) et BUG-127 (retour /liaison même hôte).
This commit is contained in:
2026-11-20 07:19:08 -05:00
parent 5794595d88
commit f77b0e6574
34 changed files with 1789 additions and 119 deletions
+14 -10
View File
@@ -2,7 +2,7 @@
**Ultra-light web gateway for your Obsidian vaults** — Access, browse, and search all your Obsidian notes from any device via a modern, responsive web interface.
[![Version](https://img.shields.io/badge/Version-2.87.3-blue.svg)]()
[![Version](https://img.shields.io/badge/Version-2.88.0-blue.svg)]()
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://www.docker.com/)
[![Python](https://img.shields.io/badge/Python-3.11+-green.svg)](https://www.python.org/)
@@ -572,6 +572,8 @@ ObsiGate Desktop is a native application built with [Tauri](https://tauri.app/)
| Tray icon | ❌ | ✅ Taskbar |
| Auto-update | ❌ | ✅ Checks Gitea releases |
| Offline mode | Limited | Full (local backend) |
| Central account sign-in | ✅ | ✅ Device link (local admin unlocked) |
| Central environment (prod/dev) | Server-side `.env` | ✅ Configuration + first run |
### Download (Pre-built Binaries)
@@ -606,8 +608,9 @@ chmod +x ObsiGate_2.0.0_amd64.AppImage
1. **Launch the application** from the menu or command line
2. The Python backend starts automatically on `127.0.0.1:17890`
3. The window opens and loads the ObsiGate interface
4. **First launch** : select your Obsidian vaults folder via the native picker
5. To close : tray icon → Quit (clean backend shutdown)
4. **First launch** : choose the central environment (prod/dev) and select your Obsidian vaults folder via the native picker
5. **Sign in** with the local admin (`admin` / `chab30` at creation) or with your central account (approval in your browser)
6. To close : tray icon → Quit (clean backend shutdown)
### Build from Source
@@ -640,12 +643,13 @@ build-windows.bat
Script steps:
1. Kills residual Python processes (`taskkill /F /IM python.exe`)
2. Downloads **Python 3.11 embed** (python.org) → `desktop\python-embed\` + enables pip (`python311._pth`)
3. `pip install -r ..\backend\requirements.txt` in the embed
1. Runs from its own folder (safe even if invoked as `desktop\build-windows.bat`) and stops only the embedded backend (`*\python-embed\python.exe`)
2. Downloads **Python 3.11 embed** (python.org) → `desktop\python-embed\` and writes a complete `python311._pth` (stdlib `python311.zip`, `.`, `import site`, `..` for `import backend`)
3. `pip install -r ..\backend\requirements.txt` in the embed, then a sanity check (`import encodings, uvicorn, fastapi, pyotp`)
4. **Staging** : copies `..\backend` and `..\frontend` to `desktop\`
5. `cargo tauri build --target x86_64-pc-windows-msvc --bundles nsis`
6. Copies `python-embed` next to the executable (`target\x86_64-pc-windows-msvc\release\`) for local dev mode
5. `cargo tauri build --ci --target x86_64-pc-windows-msvc --bundles nsis,msi`
Updater `.sig` files are produced only when `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` is set — no interactive password prompt.
6. Copies the runtime (`python-embed`, `backend`, `frontend`) next to the executable (`target\x86_64-pc-windows-msvc\release\`) for local dev mode
7. Cleans the staged folders
→ **Artifact :** `desktop\target\x86_64-pc-windows-msvc\release\bundle\nsis\ObsiGate_2.0.0_x64-setup.exe`
@@ -1152,8 +1156,8 @@ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE)
## 📝 Changelog
See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.87.3).
See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.88.0).
---
*Project: ObsiGate | Version: 2.87.3 | Last updated: September 2026*
*Project: ObsiGate | Version: 2.88.0 | Last updated: September 2026*