mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-09-01 03:37:23 +00:00
18 lines
565 B
Rust
18 lines
565 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
let _ = Command::new("patchelf")
|
|
.arg("--set-rpath")
|
|
.arg("$ORIGIN")
|
|
.arg("SoulverWrapper/Vendor/SoulverCore-linux/libSoulverCoreDynamic.so")
|
|
.status()
|
|
.expect("Failed to patch elf for libSoulverCoreDynamic");
|
|
|
|
println!("cargo:rustc-link-search=native=SoulverWrapper/.build/release");
|
|
|
|
println!("cargo:rustc-link-lib=SoulverWrapper");
|
|
|
|
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN/../lib/raycast-linux/SoulverWrapper/.build/release");
|
|
|
|
tauri_build::build();
|
|
}
|