🔧 增加限制

This commit is contained in:
BTMuli
2023-10-19 19:29:53 +08:00
parent f2db40e3c4
commit 8a3358a355
3 changed files with 39 additions and 557 deletions

View File

@@ -2,7 +2,7 @@
"build": {
"beforeDevCommand": "pnpm vite:dev",
"beforeBuildCommand": "pnpm vite:build",
"devPath": "http://localhost:3000",
"devPath": "http://localhost:4000",
"distDir": "../dist",
"withGlobalTauri": true
},
@@ -12,19 +12,47 @@
},
"tauri": {
"allowlist": {
"all": true,
"all": false,
"fs": {
"all": true,
"all": false,
"exists": true,
"readFile": true,
"writeFile": true,
"createDir": true,
"removeDir": true,
"removeFile": true,
"scope": ["**", "**/*"]
},
"http": {
"all": true,
"all": false,
"request": true,
"scope": ["http://**", "https://**"]
},
"shell": {
"all": false,
"open": true
},
"dialog": {
"all": false,
"open": true,
"save": true
},
"clipboard": {
"all": true
},
"path": {
"all": true
},
"window": {
"all": false,
"setTitle": true,
"unminimize": true,
"show": true,
"close": true,
"setFocus": true
},
"os": {
"all": true
}
},
"bundle": {