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: fallback intel mac

Louis Beaumont11b0a5b53f4e
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 8a917b40d..c1de5f37f 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -4170,7 +4170,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "screenpipe-app"
-version = "0.14.3"
+version = "0.14.4"
dependencies = [
"anyhow",
"axum",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 9a020efdb..b92cbf4a4 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.14.3"
+version = "0.14.4"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/build.rs b/screenpipe-app-tauri/src-tauri/build.rs
index 3d26d2997..4a7a41a60 100644
--- a/screenpipe-app-tauri/src-tauri/build.rs
+++ b/screenpipe-app-tauri/src-tauri/build.rs
@@ -7,7 +7,18 @@ fn main() {
{
#[cfg(target_arch = "x86_64")]
{
- fs::copy("../../target/x86_64-apple-darwin/release/screenpipe", "screenpipe-x86_64-apple-darwin").unwrap();
+ let primary_path = "../../target/x86_64-apple-darwin/release/screenpipe";
+ let fallback_path = "../../target/release/screenpipe";
+
+ let source_path = if fs::metadata(primary_path).is_ok() {
+ primary_path
+ } else {
+ fallback_path
+ };
+
+ fs::copy(source_path, "screenpipe-x86_64-apple-darwin")
+ .expect("failed to copy screenpipe binary");
+
Command::new("install_name_tool")
.args(["-change", "../../screenpipe-vision/lib/libscreenpipe_x86_64.dylib",
"@executable_path/../Frameworks/libscreenpipe_x86_64.dylib", "./screenpipe-x86_64-apple-darwin"])