From 6d98210734ba1a2f5f2c4c375184a82a1c0d3ffc Mon Sep 17 00:00:00 2001 From: Jan May Date: Thu, 1 Feb 2024 18:46:16 +0100 Subject: [PATCH] limit tauri fs api to download folder --- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c68502b..c55a6f9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -13,7 +13,7 @@ edition = "2021" tauri-build = { version = "1.5", features = [] } [dependencies] -tauri = { version = "1.5", features = [ "fs-all", "path-all", "dialog-all", "shell-open"] } +tauri = { version = "1.5", features = [ "fs-write-file", "path-all", "dialog-all", "shell-open"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3523f2c..cb11b5c 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -20,7 +20,7 @@ "all": true }, "fs": { - "all": true, + "writeFile": true, "scope": ["$DOWNLOAD/*"] }, "dialog": { "all": true