mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-08-30 10:47:26 +00:00
32 lines
975 B
Rust
32 lines
975 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
// dont touch this file - it works and i have no idea why
|
|
// let status = Command::new("swift")
|
|
// .arg("build")
|
|
// .arg("-c")
|
|
// .arg("release")
|
|
// .arg("--package-path")
|
|
// .arg("SoulverWrapper")
|
|
// .status()
|
|
// .expect("Failed to execute swift build command");
|
|
|
|
// if !status.success() {
|
|
// panic!("Swift build failed");
|
|
// }
|
|
|
|
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();
|
|
}
|