Skip to content

Commit

Permalink
CI/AppImage: Work around broken AppImageLauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 9, 2024
1 parent 624ab4d commit 5368a1d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/appimage/make-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down Expand Up @@ -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"

0 comments on commit 5368a1d

Please sign in to comment.