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.

feat(appimage): add a launcher for the packaged engine

Sett Sarverott5c4ddb6989fc
diff --git a/tools/release/appimage/AppRun b/tools/release/appimage/AppRun
new file mode 100755
index 00000000..2d5c54d3
--- /dev/null
+++ b/tools/release/appimage/AppRun
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -eu
+appdir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
+export PATH="$appdir/usr/bin:$PATH"
+export LD_LIBRARY_PATH="$appdir/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
+export RAEA_HOME="$appdir/usr/share/raea"
+export RAEA_BUNDLE_LIB="$appdir/usr/bin/libraea_bundle.so"
+export RAEA_NO_TREE=1
+# Preserve the caller's working directory: composition and output paths are relative to it.
+exec "$appdir/usr/bin/raea" "$@"