mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-23 22:09:51 +08:00
♻️ 姑且能跑 dev,尚需调试功能
This commit is contained in:
11
src-tauri/capabilities/Mys.json
Normal file
11
src-tauri/capabilities/Mys.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "./schemas/desktop-schema.json",
|
||||
"identifier": "Mys",
|
||||
"description": "Capability for the mys client window",
|
||||
"windows": ["mhy_client"],
|
||||
"permissions": [],
|
||||
"remote": {
|
||||
"urls": ["https://*.mihoyo.com/*", "https://*.miyoushe.com/*"]
|
||||
},
|
||||
"platforms": ["windows", "macOS"]
|
||||
}
|
||||
32
src-tauri/capabilities/TeyvatGuide.json
Normal file
32
src-tauri/capabilities/TeyvatGuide.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"$schema": "./schemas/desktop-schema.json",
|
||||
"identifier": "TeyvatGuide",
|
||||
"description": "Capability for the main window",
|
||||
"windows": ["TeyvatGuide"],
|
||||
"permissions": [
|
||||
"path:allow-resolve-directory",
|
||||
"path:default",
|
||||
"event:allow-listen",
|
||||
"event:default",
|
||||
"app:allow-version",
|
||||
"app:default",
|
||||
"window:allow-set-title",
|
||||
"sql:allow-load",
|
||||
"sql:default",
|
||||
"sql:allow-execute",
|
||||
"log:allow-log",
|
||||
"log:default",
|
||||
"http:allow-fetch",
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{
|
||||
"url": "https://*.miyoushe.com/*"
|
||||
},
|
||||
{
|
||||
"url": "https://*.mihoyo.com/*"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user