Skip to content

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

fix(app): stub libonnxruntime.dylib on aarch64 instead of deleting it (#5086)

Ezra Ellette0381b4af43fb
diff --git a/apps/screenpipe-app-tauri/src-tauri/build.rs b/apps/screenpipe-app-tauri/src-tauri/build.rs
index 763403833..3a0a6f252 100644
--- a/apps/screenpipe-app-tauri/src-tauri/build.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/build.rs
@@ -669,8 +669,10 @@ fn stage_libonnxruntime_dylib() {
}
}
sign_macos_sidecar_if_needed(&dylib);
- } else {
- let _ = std::fs::remove_file(&dylib);
+ } else if !dylib.exists() {
+ // aarch64 doesn't load this dylib at runtime, but the bundler's
+ // macOS.files mapping references it unconditionally, so it must exist.
+ let _ = std::fs::write(&dylib, b"");
}
}