refactor: remove executable_path

This commit is contained in:
zhom
2026-03-24 00:06:36 +04:00
parent f63650fa5d
commit cd5fd2c970
7 changed files with 96 additions and 126 deletions
+14
View File
@@ -207,6 +207,20 @@ impl Extractor {
match extraction_result {
Ok(path) => {
// Remove quarantine attributes on macOS to prevent
// "app was prevented from modifying data" prompts
#[cfg(target_os = "macos")]
{
let _ = tokio::process::Command::new("xattr")
.args([
"-dr",
"com.apple.quarantine",
dest_dir.to_str().unwrap_or("."),
])
.output()
.await;
}
log::info!(
"Successfully extracted {} {} to: {}",
browser_type.as_str(),