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

@@ -1,7 +1,7 @@
{
"name": "stream-capture",
"private": true,
"version": "0.1.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",

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(())
}

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "stream-capture",
"version": "0.1.0",
"productName": "StreamCapture",
"version": "1.0.0",
"identifier": "top.volan.stream-capture",
"build": {
"beforeDevCommand": "pnpm dev",