Skip to content

Commit

Permalink
fix: apple ocr distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 8, 2024
1 parent 6395e07 commit 98cbb6c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions screenpipe-vision/build.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
use std::env;
use std::path::PathBuf;

#[cfg(target_os = "macos")]
fn main() {
let destination = env::var("DESTINATION").unwrap_or_default();

let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
let lib_path = PathBuf::from(manifest_dir).join("lib");

println!("cargo:rustc-link-search=native={}", lib_path.display());

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

0 comments on commit 98cbb6c

Please sign in to comment.