Files
ObsiGate/desktop/tauri.conf.json
T
bruno db72e6f055
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
feat: Tauri desktop shell — Rust backend + config files + build scripts
- 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

99 lines
2.8 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/nicedoc/obsigate/main/desktop/tauri.conf.schema.json",
"productName": "ObsiGate",
"version": "2.0.0",
"identifier": "com.obsigate.desktop",
"build": {
"frontendDist": "../frontend",
"devUrl": "http://localhost:17890",
"beforeDevCommand": "cd .. && python -m uvicorn backend.main:app --host 127.0.0.1 --port 17890 --log-level info",
"beforeBuildCommand": "echo 'Frontend already built — using static files'"
},
"app": {
"withGlobalTauri": true,
"windows": [
{
"title": "ObsiGate",
"width": 1200,
"height": 800,
"minWidth": 800,
"minHeight": 600,
"resizable": true,
"fullscreen": false,
"center": true,
"decorations": true,
"transparent": false,
"label": "main"
}
],
"security": {
"csp": "default-src 'self'; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://unpkg.com https://esm.sh; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: blob: https:; connect-src 'self' http://127.0.0.1:* ws://127.0.0.1:*;"
},
"trayIcon": {
"iconPath": "icons/icon.png",
"iconAsTemplate": true,
"tooltip": "ObsiGate",
"menuOnLeftClick": false
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"fileAssociations": [
{
"ext": ["md", "markdown", "txt"],
"name": "ObsiGate Markdown",
"description": "Fichier Markdown ObsiGate",
"role": "Editor"
}
],
"windows": {
"wix": null,
"nsis": {
"installMode": "currentUser",
"installerIcon": "icons/icon.ico",
"shortcutName": "ObsiGate",
"createDesktopShortcut": true,
"startMenuFolder": "ObsiGate"
}
},
"linux": {
"deb": {
"depends": ["libwebkit2gtk-4.1-0", "libgtk-3-0", "libayatana-appindicator3-1"]
},
"appimage": {
"bundleMediaFramework": true
}
},
"macOS": {
"frameworks": [],
"minimumSystemVersion": ""
}
},
"plugins": {
"updater": {
"pubkey": "CHANGE_ME_TO_YOUR_PUBLIC_KEY",
"endpoints": [
"https://git.dracodev.net/api/v1/repos/Projets/ObsiGate/releases/latest"
]
},
"shell": {
"open": true,
"scope": [
{
"name": "python-backend",
"cmd": "./python-embed/python",
"args": ["-m", "uvicorn", "backend.main:app", "--host", "127.0.0.1", "--port", "17890"]
}
]
}
}
}