3ff721b31a
The AppImage build inputs (AppRun, .desktop entry, icon, and the CI-fetched linuxdeploy binary) are consumed only by desktopApp's createReleaseAppImage task. Co-locating them under desktopApp/packaging/appimage/ removes the `../` path escape from the build script and keeps all desktop packaging assets inside the module. https://claude.ai/code/session_0137ULcfJkASmfmffFBdW8ac
12 lines
538 B
Bash
Executable File
12 lines
538 B
Bash
Executable File
#!/bin/bash
|
|
# AppImage launcher for Amethyst Desktop.
|
|
# Sets LD_LIBRARY_PATH so vlcj finds bundled libvlc.so at runtime.
|
|
# jpackage puts app resources at usr/lib/app/<platform>/vlc/ inside the AppDir.
|
|
set -eu
|
|
HERE="$(dirname "$(readlink -f "${0}")")"
|
|
export LD_LIBRARY_PATH="${HERE}/usr/lib/app/linux/vlc:${HERE}/usr/lib:${HERE}/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH:-}"
|
|
export VLC_PLUGIN_PATH="${HERE}/usr/lib/app/linux/vlc/plugins"
|
|
export PATH="${HERE}/usr/bin:${PATH}"
|
|
export APPDIR="${HERE}"
|
|
exec "${HERE}/usr/bin/Amethyst" "$@"
|