mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-12-23 10:11:57 +00:00
chore: correctly include swift so libraries at runtime
This commit changes the build process to include Swift shared object files, allowing users to not need to include them at runtime. However, this requires the files to be present in src-tauri/SoulverWrapper/Vendor/SoulverCore-linux at build time.
This commit is contained in:
parent
2b383ea8e6
commit
307d862b3b
2 changed files with 8 additions and 1 deletions
|
|
@ -19,6 +19,13 @@ fn main() {
|
|||
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");
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
],
|
||||
"externalBin": ["binaries/app"],
|
||||
"resources": [
|
||||
"SoulverWrapper/Vendor/SoulverCore-linux/libSoulverCoreDynamic.so",
|
||||
"SoulverWrapper/Vendor/SoulverCore-linux/*",
|
||||
"SoulverWrapper/Vendor/SoulverCore-linux/SoulverCore_SoulverCore.resources",
|
||||
"SoulverWrapper/.build/release/libSoulverWrapper.so"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue