Files
maarcadetweet/crates/tauri-app/src-tauri/tauri.conf.json
T
tomdebone 647c3059b4 feat(tauri-app): Tauri 2 capabilities default + open_devtools in debug
The dev build was missing a capabilities/default.json so the
event:listen and notification:is-permission-granted plugins
denied every IPC call from main.ts (logged as 'event.listen not
allowed' etc. in DevTools). Add the minimum set needed by
client.ts / main.ts and the AppView/Tauri commands registered
in lib.rs.

Also open the webview devtools automatically on startup behind
a debug_assertions guard, so the frontend console + DOM inspector
are available without reaching for the macOS View menu.
2026-07-07 20:54:10 +02:00

55 lines
1.3 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "maarcadetweet",
"version": "0.1.0",
"identifier": "de.eifelcloud.maarcadetweet",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://127.0.0.1:1430",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"withGlobalTauri": false,
"windows": [
{
"label": "main",
"title": "maarcadetweet",
"width": 1200,
"height": 760,
"minWidth": 880,
"minHeight": 540,
"resizable": true,
"decorations": true,
"transparent": false,
"titleBarStyle": "Visible",
"hiddenTitle": false,
"backgroundColor": "#0D0D0D"
}
],
"security": {
"csp": "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' ipc: http://ipc.localhost",
"capabilities": ["default"]
}
},
"plugins": {
"updater": {
"active": true,
"dialog": true,
"endpoints": [
"https://releases.maarcadetweet.local/{{target}}/{{arch}}/{{current_version}}"
],
"pubkey": ""
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.png"
]
}
}