#!/bin/sh
# AppImage runtime: use the bundled SDL3 and libpng, with game assets
# relative to the executable's known directory. No installation required.
set -eu
APPDIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)"
export LD_LIBRARY_PATH="$APPDIR/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
cd "$APPDIR/usr/share/bone-shmup"
exec "$APPDIR/usr/bin/bone-shmup" "$@"
