Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

raea 19885ca8c79779eff393afe944e54f122906c8a9

shinyobjectz91c544d21b25
diff --git a/engine/bundle/build.rs b/engine/bundle/build.rs
new file mode 100644
index 00000000..ecea7aa1
--- /dev/null
+++ b/engine/bundle/build.rs
@@ -0,0 +1,8 @@
+// The cdylib's install name on macOS is @rpath/libraea_bundle.dylib, not the path it was linked at: raea loads it by
+// path (runtime/bundle/src/fresh.rs), so the name is only a label, but the default one carried the build machine's
+// folder into every release (public issue #6). Set at link time, so the linker's own signature stays valid.
+fn main() {
+ if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
+ println!("cargo:rustc-cdylib-link-arg=-Wl,-install_name,@rpath/libraea_bundle.dylib");
+ }
+}