Files
Sable/src-tauri/tauri.conf.json
T
Erwan Leboucher d936986244 fix(tauri): declare camera/mic usage strings and allow inline styles
WKWebView hides navigator.mediaDevices entirely unless the app
declares NSCameraUsageDescription and NSMicrophoneUsageDescription
in Info.plist, which caused Element Call to bail with "Your
browser does not support WebRTC". Add a custom Info.plist merged
via tauri.conf.json bundle.macOS.infoPlist.

Also add style-src 'unsafe-inline' to the CSP so the embedded
Element Call iframe's inline styles are not silently dropped.
2026-07-17 18:11:13 +02:00

60 lines
1.6 KiB
JSON

{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "sable",
"version": "0.1.0",
"identifier": "moe.sable.client",
"build": {
"frontendDist": "../dist",
"devUrl": "http://localhost:8080",
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build"
},
"app": {
"windows": [],
"security": {
"csp": "default-src 'self' blob: data: filesystem: ws: wss: http: https: tauri:; script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: ws: wss: http: https: tauri:; style-src 'self' 'unsafe-inline' blob: data: filesystem: http: https: tauri:; img-src 'self' data: blob: filesystem: http: https: sable-media:; media-src 'self' blob: data: http: https: sable-media:; connect-src 'self' ipc: ws: wss: http: https: http://ipc.localhost sable-media: http://sable-media.localhost"
}
},
"bundle": {
"active": true,
"targets": "all",
"macOS": {
"infoPlist": "Info.plist"
},
"linux": {
"deb": {
"depends": ["xwayland"]
},
"rpm": {
"depends": ["xorg-x11-server-Xwayland"]
}
},
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
},
"plugins": {
"typegen": {
"projectPath": ".",
"outputPath": "../src/app/generated/tauri",
"validationLibrary": "none",
"verbose": false
},
"deep-link": {
"desktop": {
"schemes": ["sable", "moe.sable.app"]
},
"mobile": [
{
"scheme": ["sable", "moe.sable.app"],
"appLink": false
}
]
}
}
}