refactor: move packaging/appimage into desktopApp module

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
This commit is contained in:
Claude
2026-05-14 18:21:28 +00:00
parent b385088c95
commit 3ff721b31a
7 changed files with 13 additions and 12 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/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" "$@"