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)
90 lines
2.5 KiB
JSON
90 lines
2.5 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": {
|
|
"nsis": {
|
|
"installMode": "currentUser",
|
|
"installerIcon": "icons/icon.ico",
|
|
"startMenuFolder": "ObsiGate"
|
|
}
|
|
},
|
|
"linux": {
|
|
"deb": {
|
|
"depends": ["libwebkit2gtk-4.1-0", "libgtk-3-0", "libayatana-appindicator3-1"]
|
|
},
|
|
"appimage": {
|
|
"bundleMediaFramework": true
|
|
}
|
|
},
|
|
"macOS": {
|
|
"frameworks": [],
|
|
"minimumSystemVersion": ""
|
|
}
|
|
},
|
|
"plugins": {
|
|
"shell": {
|
|
"open": true,
|
|
"scope": [
|
|
{
|
|
"name": "python-backend",
|
|
"cmd": "./python-embed/python",
|
|
"args": ["-m", "uvicorn", "backend.main:app", "--host", "127.0.0.1", "--port", "17890"]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|