diff --git a/Cargo.toml b/Cargo.toml index 5357da6ef..1278a6a4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ resolver = "2" [workspace.package] -version = "0.1.52" +version = "0.1.53" authors = ["louis030195 "] description = "" repository = "https://github.com/louis030195/screen-pipe" diff --git a/screenpipe-vision/build.rs b/screenpipe-vision/build.rs index 032fe57b6..de61af8ff 100644 --- a/screenpipe-vision/build.rs +++ b/screenpipe-vision/build.rs @@ -7,6 +7,10 @@ fn main() { // Set the rpath println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib"); + println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path/../lib"); + + // Ensure the linker uses the correct library name + println!("cargo:rustc-link-arg=-Wl,-install_name,@rpath/libscreenpipe.dylib"); } #[cfg(not(target_os = "macos"))]