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
Use specific target triple (#801)
Neptune5a0510d88939
diff --git a/screenpipe-app-tauri/src-tauri/build.rs b/screenpipe-app-tauri/src-tauri/build.rsindex 4a7a41a60..6683cc33e 100644--- a/screenpipe-app-tauri/src-tauri/build.rs+++ b/screenpipe-app-tauri/src-tauri/build.rs@@ -1,5 +1,5 @@#[cfg(target_os = "macos")]-use std::{fs, process::Command};+use std::{fs, process::Command, env};fn main() {// Copies executables and hardcodes the dylibs@@ -9,7 +9,7 @@ fn main() {{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 {@@ -18,7 +18,7 @@ fn main() {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"])@@ -31,10 +31,10 @@ fn main() {.expect("failed to execute process");}#[cfg(target_arch = "aarch64")]- {+ if env::var("TARGET").unwrap() == "aarch64-apple-darwin" {let primary_path = "../../target/aarch64-apple-darwin/release/screenpipe";let fallback_path = "../../target/release/screenpipe";-+let source_path = if fs::metadata(primary_path).is_ok() {primary_path} else {@@ -43,7 +43,7 @@ fn main() {fs::copy(source_path, "screenpipe-aarch64-apple-darwin").expect("failed to copy screenpipe binary");-+Command::new("install_name_tool").args(["-change", "../../screenpipe-vision/lib/libscreenpipe_arm64.dylib","@executable_path/../Frameworks/libscreenpipe_arm64.dylib", "./screenpipe-aarch64-apple-darwin"])