refactor(tauri-config): Allowlist for the path APIs.

This commit is contained in:
Walid 2023-04-19 17:12:21 +00:00
parent a4f1ed4694
commit 243b9f3d36
Signed by: Walidoux
GPG Key ID: CCF21881FE8BEBAF
2 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@ edition = "2021"
tauri-build = { version = "1.2", features = [] }
[dependencies]
tauri = { version = "1.2", features = ["fs-create-dir", "fs-exists", "fs-read-dir", "fs-write-file", "http-all", "shell-all", "window-close", "window-maximize", "window-minimize", "window-unmaximize"] }
tauri = { version = "1.2", features = ["fs-create-dir", "fs-exists", "fs-read-dir", "fs-read-file", "fs-write-file", "http-all", "path-all", "shell-all", "window-close", "window-maximize", "window-minimize", "window-unmaximize"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -28,6 +28,9 @@
"writeFile": true,
"scope": ["$DOWNLOAD/**/*"]
},
"path": {
"all": true
},
"shell": {
"all": true,
"execute": true,
@ -70,8 +73,8 @@
"decorations": false,
"center": true,
"resizable": true,
"width": 800,
"height": 500
"width": 1000,
"height": 600
}
]
}