From fcac2d836df90c68028cdfff585e7f2b0857e62e Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Thu, 8 Aug 2024 19:55:23 +0200 Subject: [PATCH] fix brew --- Cargo.toml | 2 +- screenpipe-vision/build.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5357da6e..1278a6a4 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 032fe57b..de61af8f 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"))]