diff --git a/lib/rclone/init.ts b/lib/rclone/init.ts index 49f5087..49b6ea6 100644 --- a/lib/rclone/init.ts +++ b/lib/rclone/init.ts @@ -193,10 +193,6 @@ export async function provisionRclone() { const appLocalDataDirPath = await appLocalDataDir() console.log('appLocalDataDirPath', appLocalDataDirPath) - await invoke('allow_dir', { - path: appLocalDataDirPath, - }) - const appLocalDataDirPathExists = await exists(appLocalDataDirPath) console.log('appLocalDataDirPathExists', appLocalDataDirPathExists) diff --git a/package-lock.json b/package-lock.json index f0513f7..6101df4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "s-tray", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "s-tray", - "version": "1.0.2", + "version": "1.0.3", "dependencies": { "@nextui-org/react": "^2.6.11", "@tauri-apps/api": "~2.2.0", diff --git a/package.json b/package.json index 4011ed3..a812e9f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "s-tray", "private": true, - "version": "1.0.2", + "version": "1.0.3", "type": "module", "scripts": { "dev": "node scripts/buildExternal.js && vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index e81e3bc..a98e96e 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -103,7 +103,7 @@ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" [[package]] name = "app" -version = "1.0.2" +version = "1.0.3" dependencies = [ "cocoa", "fix-path-env", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 41c43fd..695f80d 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "app" -version = "1.0.2" +version = "1.0.3" description = "A Tauri App" authors = ["you"] license = "" diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index a6f7c20..001faa3 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -12,23 +12,6 @@ use std::path::Path; use zip::ZipArchive; use tauri_plugin_sentry::{minidump, sentry}; -use tauri::{AppHandle, Runtime}; -use tauri_plugin_fs::FsExt; - -#[tauri::command] -fn allow_file( - app: AppHandle, - path: &str) -> () { - app.fs_scope().allow_file(path); -} - -#[tauri::command] -fn allow_dir( - app: AppHandle, - path: &str) -> () { - app.fs_scope().allow_directory(path, true); -} - #[tauri::command] fn unzip_file(zip_path: &str, output_folder: &str) -> Result<(), String> { // Open the zip file @@ -121,7 +104,7 @@ pub fn run() { .plugin(tauri_plugin_log::Builder::new().build()) .plugin(tauri_plugin_shell::init()) .plugin(tauri_plugin_opener::init()) - .invoke_handler(tauri::generate_handler![unzip_file, get_arch, get_uid, allow_file, allow_dir]) + .invoke_handler(tauri::generate_handler![unzip_file, get_arch, get_uid]) .setup(|_app| Ok(())) // .setup(|app| { // if cfg!(debug_assertions) { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8626f46..11d2f06 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Rclone UI", - "version": "1.0.2", + "version": "1.0.3", "identifier": "com.stray.app", "build": { "frontendDist": "../dist", @@ -93,6 +93,9 @@ "updater": { "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDIyNDFENEZGNjFDNTBGOEYKUldTUEQ4VmgvOVJCSWhVZmw0enhmcW1kWFk3TS9mMzBDRjVEZWdxKzQ5ZmRhTlYvT2gvdFNMbE8K", "endpoints": ["https://github.com/FTCHD/rclone-ui/releases/latest/download/latest.json"] + }, + "fs": { + "requireLiteralLeadingDot": false } } }