From 5368a1dcbacd5e852c10c6799a0915e2a899cd4d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 9 Aug 2024 18:19:17 +1000 Subject: [PATCH] CI/AppImage: Work around broken AppImageLauncher --- scripts/appimage/make-appimage.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/appimage/make-appimage.sh b/scripts/appimage/make-appimage.sh index 4fb9137c9..0ab65710e 100755 --- a/scripts/appimage/make-appimage.sh +++ b/scripts/appimage/make-appimage.sh @@ -82,6 +82,7 @@ set -e LINUXDEPLOY=./linuxdeploy-x86_64 LINUXDEPLOY_PLUGIN_QT=./linuxdeploy-plugin-qt-x86_64 APPIMAGETOOL=./appimagetool-x86_64 +APPIMAGERUNTIME=./runtime-x86_64 PATCHELF=patchelf if [ ! -f "$LINUXDEPLOY" ]; then @@ -95,10 +96,14 @@ if [ ! -f "$LINUXDEPLOY_PLUGIN_QT" ]; then fi if [ ! -f "$APPIMAGETOOL" ]; then - retry_command wget -O "$APPIMAGETOOL" https://github.com/stenzek/duckstation-ext-qt-minimal/releases/download/linux/appimagetool-x86_64.AppImage + retry_command wget -O "$APPIMAGETOOL" https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage chmod +x "$APPIMAGETOOL" fi +if [ ! -f "$APPIMAGERUNTIME" ]; then + retry_command wget -O "$APPIMAGERUNTIME" https://github.com/stenzek/type2-runtime/releases/download/continuous/runtime-x86_64 +fi + OUTDIR=$(realpath "./$APPDIRNAME") rm -fr "$OUTDIR" @@ -207,4 +212,4 @@ done echo "Generating AppImage..." rm -f "$NAME.AppImage" -ARCH=x86_64 VERSION=test "$APPIMAGETOOL" -s "$OUTDIR" && mv ./*.AppImage "$NAME.AppImage" +"$APPIMAGETOOL" -v --runtime-file "$APPIMAGERUNTIME" "$OUTDIR" "$NAME.AppImage"