YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix ci
Louis Beaumontd237fe1bfde2
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex deef66d75..e8a2b20dc 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -21,9 +21,9 @@ jobs:matrix:include:- platform: "macos-latest" # for Arm based macs (M1 and above).- args: "--target aarch64-apple-darwin --features metal"+ args: "--target aarch64-apple-darwin --features metal -v"- platform: "macos-latest" # for Intel based macs.- args: "--target x86_64-apple-darwin --features metal"+ args: "--target x86_64-apple-darwin --features metal -v"- platform: "ubuntu-24.04" # Ubuntu x86_64args: "" # TODO CUDA- platform: "windows-latest" # Windows x86_64@@ -85,4 +85,4 @@ jobs:prerelease: trueargs: ${{ matrix.args }}projectPath: "./examples/apps/screenpipe-app-tauri"- tauriScript: bunx tauri -v+ tauriScript: bunx tauridiff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rsindex 1d80b5d5f..382c95835 100644--- a/screenpipe-audio/src/core.rs+++ b/screenpipe-audio/src/core.rs@@ -144,6 +144,18 @@ async fn run_ffmpeg(.stdout(Stdio::piped()).stderr(Stdio::piped()).spawn()?;++ // Explicitly set the library paths for the FFmpeg command+ if let Ok(ld_library_path) = std::env::var("LD_LIBRARY_PATH") {+ command.env("LD_LIBRARY_PATH", ld_library_path);+ }+ #[cfg(target_os = "macos")]+ if let Ok(dyld_library_path) = std::env::var("DYLD_LIBRARY_PATH") {+ command.env("DYLD_LIBRARY_PATH", dyld_library_path);+ }++ debug!("FFmpeg command: {:?}", command);+debug!("FFmpeg process spawned");let mut stdin = ffmpeg.stdin.take().expect("Failed to open stdin");let start_time = std::time::Instant::now();diff --git a/screenpipe-core/src/ffmpeg.rs b/screenpipe-core/src/ffmpeg.rsindex c546d7239..bf7bca01e 100644--- a/screenpipe-core/src/ffmpeg.rs+++ b/screenpipe-core/src/ffmpeg.rs@@ -90,25 +90,11 @@ pub fn find_ffmpeg_path() -> Option<PathBuf> {let mut new_paths = HashSet::new();- // Add the lib path relative to the ffmpeg executable- if let Some(lib_path) = path- .parent()- .and_then(|p| p.parent())- .map(|p| p.join("lib"))- {- new_paths.insert(lib_path.to_string_lossy().to_string());- }-// Add Homebrew lib paths#[cfg(target_os = "macos")]{new_paths.insert("/opt/homebrew/opt/ffmpeg/lib".to_string());new_paths.insert("/opt/homebrew/opt/lame/lib".to_string());- }-- // Add Screenpipe app Frameworks path- #[cfg(target_os = "macos")]- {new_paths.insert("/Applications/screenpipe.app/Contents/Frameworks".to_string());}@@ -128,6 +114,17 @@ pub fn find_ffmpeg_path() -> Option<PathBuf> {#[cfg(target_os = "macos")]update_env_var("DYLD_LIBRARY_PATH", ¤t_dyld_path, &new_paths);+ // Print out the updated environment variables+ debug!(+ "Updated LD_LIBRARY_PATH: {:?}",+ std::env::var("LD_LIBRARY_PATH")+ );+ #[cfg(target_os = "macos")]+ debug!(+ "Updated DYLD_LIBRARY_PATH: {:?}",+ std::env::var("DYLD_LIBRARY_PATH")+ );+return Some(path);}error!("ffmpeg not found");