Files
TeyvatGuide/src-tauri/capabilities/TeyvatGuide.json
2024-07-03 17:49:15 +08:00

65 lines
1.4 KiB
JSON

{
"$schema": "./schemas/desktop-schema.json",
"identifier": "TeyvatGuide",
"description": "Capability for the main window",
"windows": ["TeyvatGuide"],
"permissions": [
"app:allow-version",
"app:default",
"event:allow-listen",
"event:default",
"fs:allow-remove",
"fs:default",
"fs:scope-cache-recursive",
"fs:scope-document-recursive",
"http:allow-fetch",
"log:allow-log",
"log:default",
"path:allow-resolve-directory",
"path:default",
"process:allow-exit",
"process:allow-restart",
"process:default",
"shell:allow-execute",
"shell:allow-open",
"shell:default",
"sql:allow-load",
"sql:allow-execute",
"sql:default",
"window:allow-close",
"window:allow-destroy",
"window:allow-set-title",
"window:allow-show",
{
"identifier": "http:default",
"allow": [
{
"url": "https://*.miyoushe.com/*"
},
{
"url": "https://*.mihoyo.com/*"
},
{
"url": "https://homa.snapgenshin.com/*"
}
]
},
{
"identifier": "shell:allow-execute",
"allow": [
{
"name": "win_open",
"cmd": "explorer",
"args": true
},
{
"name": "mac_open",
"cmd": "open",
"args": true
}
]
}
],
"platforms": ["windows", "macOS"]
}