Files
Sett Sarverott 5c4ddb6989 feat(appimage): add a launcher for the packaged engine
Resolve the SDK, bundler and companion executables within the AppImage while preserving the caller working directory and arguments.
2026-11-23 16:48:55 +01:00

11 lines
432 B
Bash
Executable File

#!/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" "$@"