Skip to content

Commit

Permalink
fix: fucking lib
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 8, 2024
1 parent 47feaf8 commit ac5a15a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resolver = "2"


[workspace.package]
version = "0.1.51"
version = "0.1.52"
authors = ["louis030195 <[email protected]>"]
description = ""
repository = "https://github.com/louis030195/screen-pipe"
Expand Down
2 changes: 1 addition & 1 deletion Formula/screenpipe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Screenpipe < Formula

def install
bin.install "screenpipe"
# lib.install Dir["lib/*"]
lib.install Dir["lib/*"]
end

test do
Expand Down
19 changes: 10 additions & 9 deletions screenpipe-vision/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ use std::env;

#[cfg(target_os = "macos")]
fn main() {
let destination = env::var("DESTINATION").unwrap_or_default();
println!("cargo:rustc-link-lib=dylib=screenpipe");

if destination == "brew" {
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib");
} else if destination == "tauri" {
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../Frameworks");
} else {
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../../screenpipe-vision/lib");
}
// let destination = env::var("DESTINATION").unwrap_or_default();
println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib");

println!("cargo:rustc-link-lib=dylib=screenpipe");
// if destination == "brew" {
// println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib");
// } else if destination == "tauri" {
// println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../Frameworks");
// } else {
// println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../../screenpipe-vision/lib");
// }
}

#[cfg(not(target_os = "macos"))]
Expand Down

0 comments on commit ac5a15a

Please sign in to comment.