blob: e3095c248226e454df38f053a1cd6e7c97d9e1d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# Define the directory where assets and the binary expect to run from
APP_SHARE_DIR="/usr/share/bevy_audioviz"
# Change to the application's share directory
cd "$APP_SHARE_DIR" || exit 1
# Explicitly set CARGO_MANIFEST_DIR to the current directory.
# This *might* help Bevy resolve asset paths correctly relative to the CWD.
export CARGO_MANIFEST_DIR="$APP_SHARE_DIR"
# Execute the actual binary, passing along any arguments
exec /usr/lib/bevy_audioviz/bevy_audioviz_bin "$@"
|