Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

refactor: remove macOS quarantine attribute after downloading ytdlp binary

Tonhob0a8ef2123df
diff --git a/src-tauri/src/core/ytdlp.rs b/src-tauri/src/core/ytdlp.rs
index 588d8759..9095c22a 100644
--- a/src-tauri/src/core/ytdlp.rs
+++ b/src-tauri/src/core/ytdlp.rs
@@ -206,6 +206,15 @@ async fn download_ytdlp_binary() -> anyhow::Result<PathBuf> {
tokio::fs::set_permissions(&target, perms).await?;
}
+ #[cfg(target_os = "macos")]
+ {
+ let _ = tokio::process::Command::new("xattr")
+ .args(["-d", "com.apple.quarantine"])
+ .arg(&target)
+ .output()
+ .await;
+ }
+
Ok(target)
}