新增 HostBridge app.setBadgeCount 契约和 H5 能力门控 Expo 壳按平台声明能力并在 iOS 调用系统角标 API Tauri 壳通过主窗口设置任务栏角标并校验 payload 补齐角标能力测试、漂移检查和架构文档
35 lines
1.7 KiB
JSON
35 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Genarrative",
|
|
"version": "0.1.0",
|
|
"identifier": "world.genarrative.desktop",
|
|
"build": {
|
|
"beforeDevCommand": "npm --prefix ../.. run dev:web",
|
|
"beforeBuildCommand": "npm --prefix ../.. run build:raw && npm run typecheck",
|
|
"devUrl": "http://127.0.0.1:3000/?clientRuntime=native_app&clientType=native_app&hostShell=tauri_desktop&hostPlatform=unknown&hostVersion=0.1.0&bridgeVersion=1&hostCapabilities=host.getRuntime,share.open,share.setTarget,navigation.openNativePage,app.openExternalUrl,app.setTitle,app.setBadgeCount,clipboard.writeText,file.exportText,file.exportImage",
|
|
"frontendDist": "../../../dist"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"create": false,
|
|
"label": "main",
|
|
"url": "index.html?clientRuntime=native_app&clientType=native_app&hostShell=tauri_desktop&hostPlatform=unknown&hostVersion=0.1.0&bridgeVersion=1&hostCapabilities=host.getRuntime,share.open,share.setTarget,navigation.openNativePage,app.openExternalUrl,app.setTitle,app.setBadgeCount,clipboard.writeText,file.exportText,file.exportImage",
|
|
"title": "Genarrative",
|
|
"width": 1280,
|
|
"height": 820,
|
|
"minWidth": 960,
|
|
"minHeight": 640
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self' customprotocol: asset: http://127.0.0.1:*; img-src 'self' asset: http://127.0.0.1:* https: data: blob:; media-src 'self' asset: http://127.0.0.1:* https: data: blob:; connect-src 'self' http://127.0.0.1:* https: ws://127.0.0.1:* wss:; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self' http://127.0.0.1:*"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": ["icons/icon.png"]
|
|
}
|
|
}
|