diff --git a/package.json b/package.json index ef61d85..bd5f116 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "preview": "vite preview", "tauri": "tauri", "tauri-dev": "tauri dev", - "tauri-build": "tauri build " + "tauri-build": "tauri build" }, "dependencies": { "@ant-design/charts": "^2.0.3", diff --git a/src-tauri/build.rs b/src-tauri/build.rs index d30dd0a..98a34c0 100644 --- a/src-tauri/build.rs +++ b/src-tauri/build.rs @@ -16,7 +16,7 @@ fn check_rclone() { let bin_path = "res/bin/"; if !Path::new(bin_path).exists() { - std::fs::create_dir(bin_path).expect("Failed to create rclone directory"); + std::fs::create_dir_all(bin_path).expect("Failed to create rclone directory"); }; let temp_dir = Path::new("res/temp/");