diff --git a/Cargo.toml b/Cargo.toml index 13a48d4..6a09206 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "hedz_reloaded" version = "0.1.0" edition = "2024" +build = "build.rs" [profile.dev.package."*"] opt-level = 3 diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..dc880c3 --- /dev/null +++ b/build.rs @@ -0,0 +1,4 @@ +fn main() { + #[cfg(target_os = "linux")] + println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN"); +} diff --git a/build/steamos/redist/launch.sh b/build/steamos/redist/launch.sh deleted file mode 100755 index e014204..0000000 --- a/build/steamos/redist/launch.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -export LD_LIBRARY_PATH="." -./hedz_reloaded "$@" diff --git a/build/steamos/scripts/hedz.vdf b/build/steamos/scripts/hedz.vdf index bcf3838..490159b 100644 --- a/build/steamos/scripts/hedz.vdf +++ b/build/steamos/scripts/hedz.vdf @@ -32,12 +32,6 @@ "LocalPath" "../redist/libsteam_api.so" "DepotPath" "." } - - "FileMapping" - { - "LocalPath" "../redist/launch.sh" - "DepotPath" "." - } } } }