♻️ 感觉差不多了,剩下的就靠测试了 #92

This commit is contained in:
目棃
2024-07-03 22:33:00 +08:00
parent 8a2c7d13c6
commit f4de7552e1
28 changed files with 249 additions and 399 deletions

View File

@@ -1,11 +1,54 @@
{
"DevJson": {
"identifier": "DevJson",
"description": "Capability for the dev json window",
"local": true,
"windows": ["Dev_JSON"],
"permissions": [
"app:allow-version",
"app:default",
"event:allow-listen",
"event:default",
"http:allow-fetch",
"log:allow-log",
"log:default",
"path:allow-resolve-directory",
"path:default",
"sql:allow-load",
"sql:allow-execute",
"sql:default",
"window:allow-close",
"window:allow-destroy",
"window:allow-set-title",
"window:allow-set-fullscreen",
"window:allow-show",
{
"identifier": "http:default",
"allow": [{ "url": "https://*.miyoushe.com/*" }, { "url": "https://*.mihoyo.com/*" }]
}
],
"platforms": ["windows", "macOS"]
},
"Mys": {
"identifier": "Mys",
"description": "Capability for the mys client window",
"remote": { "urls": ["https://*.mihoyo.com/*", "https://*.miyoushe.com/*"] },
"local": true,
"windows": ["mhy_client"],
"permissions": ["event:allow-emit"],
"permissions": [
"dialog:allow-message",
"dialog:default",
"event:allow-emit",
"path:allow-resolve-directory",
"path:default",
{ "identifier": "fs:allow-exists", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-mkdir", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-read-dir", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-read-text-file", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-remove", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-write-file", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-write-text-file", "allow": [{ "path": "**" }] }
],
"platforms": ["windows", "macOS"]
},
"SubWindow": {
@@ -48,10 +91,7 @@
"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",
@@ -66,10 +106,22 @@
"sql:allow-load",
"sql:allow-execute",
"sql:default",
"webview:allow-create-webview-window",
"webview:default",
"window:allow-close",
"window:allow-destroy",
"window:default",
"window:allow-is-minimized",
"window:allow-set-title",
"window:allow-set-focus",
"window:allow-show",
{ "identifier": "fs:allow-exists", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-mkdir", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-read-dir", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-read-text-file", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-remove", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-write-file", "allow": [{ "path": "**" }] },
{ "identifier": "fs:allow-write-text-file", "allow": [{ "path": "**" }] },
{
"identifier": "http:default",
"allow": [