ensure ffmpeg

This commit is contained in:
Julian Freeman
2025-12-08 18:22:49 -04:00
parent eada45bd9c
commit 8ae5f4f66c
3 changed files with 18 additions and 3 deletions

View File

@@ -495,6 +495,21 @@ pub async fn ensure_binaries(app: &AppHandle) -> Result<()> {
.ok();
}
}
let ffmpeg = get_ffmpeg_path(app)?;
if !ffmpeg.exists() {
download_ffmpeg(app).await?;
} else {
#[cfg(target_os = "macos")]
{
std::process::Command::new("xattr")
.arg("-d")
.arg("com.apple.quarantine")
.arg(&ffmpeg)
.output()
.ok();
}
}
Ok(())
}