refactor(tauri-config): Allowlist for the path APIs.
This commit is contained in:
parent
a4f1ed4694
commit
243b9f3d36
@ -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", "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 = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
||||||
|
@ -28,6 +28,9 @@
|
|||||||
"writeFile": true,
|
"writeFile": true,
|
||||||
"scope": ["$DOWNLOAD/**/*"]
|
"scope": ["$DOWNLOAD/**/*"]
|
||||||
},
|
},
|
||||||
|
"path": {
|
||||||
|
"all": true
|
||||||
|
},
|
||||||
"shell": {
|
"shell": {
|
||||||
"all": true,
|
"all": true,
|
||||||
"execute": true,
|
"execute": true,
|
||||||
@ -70,8 +73,8 @@
|
|||||||
"decorations": false,
|
"decorations": false,
|
||||||
"center": true,
|
"center": true,
|
||||||
"resizable": true,
|
"resizable": true,
|
||||||
"width": 800,
|
"width": 1000,
|
||||||
"height": 500
|
"height": 600
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user