refactor(tauri): Update tauri config permissions

The "fs-remove-dir" feature has been added to Tauri dependencies, enabling the directory deletion operation. Similar changes were made to the tauri.conf.json file.
This commit is contained in:
Walid 2023-04-28 14:42:10 +01:00
parent fbf1a5dc7b
commit ea7c2cbf78
Signed by: Walidoux
GPG Key ID: CCF21881FE8BEBAF
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -24,6 +24,7 @@
"createDir": true, "createDir": true,
"exists": true, "exists": true,
"readDir": true, "readDir": true,
"removeDir": true,
"writeFile": true, "writeFile": true,
"scope": ["$DOWNLOAD/**/*"] "scope": ["$DOWNLOAD/**/*"]
}, },