This commit is contained in:
2025-11-01 10:59:09 -07:00
parent 75b46b742f
commit 385d5cef27

View File

@@ -8,6 +8,9 @@ use tauri::{AppHandle, Manager};
use tauri_plugin_os::platform; use tauri_plugin_os::platform;
use zip::ZipArchive; use zip::ZipArchive;
#[cfg(target_os = "linux")]
use std::{fs, os::unix::fs::PermissionsExt};
async fn unzip_to_dir(zip_path: PathBuf, out_dir: PathBuf) -> String { async fn unzip_to_dir(zip_path: PathBuf, out_dir: PathBuf) -> String {
let res = tauri::async_runtime::spawn_blocking(move || { let res = tauri::async_runtime::spawn_blocking(move || {
let file = File::open(zip_path)?; let file = File::open(zip_path)?;