From f350e4f967d6dca3331b7c4fa2ee2b4a60ec86d2 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:30:20 -0400 Subject: [PATCH] CI/AppImage: Make anylinux appimage Uses go-appimage to make an appimage with bundled glibc, which increases the compatibility of the appimage to any linux distribution. --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b483e3af0..295b73228 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -203,8 +203,17 @@ jobs: --appdir "$APP.AppDir" -d contrib/Helix.desktop \ -i contrib/helix.png --output appimage - mv "$APP-$VERSION-$ARCH.AppImage" \ - "$APP-$VERSION-$ARCH.AppImage.zsync" dist + # anylinux appimage + APPIMAGETOOL=$(wget -q https://api.github.com/repos/probonopd/go-appimage/releases -O - \ + | sed 's/[()",{} ]/\n/g' | grep -oi 'https.*continuous.*tool.*86_64.*mage$') + wget -q "$APPIMAGETOOL" -O ./appimagetool + chmod +x ./appimagetool + "$APP-$VERSION-$ARCH.AppImage" --appimage-extract + ./appimagetool -s deploy squashfs-root/usr/share/applications/Helix.desktop + ARCH=x86_64 VERSION="$VERSION-anylinux" ./appimagetool -s squashfs-root + mv *anylinux*AppImage dist + mv "$APP"-*-"$ARCH.AppImage".AppImage \ + "$APP"-*-"$ARCH.AppImage".AppImage.zsync dist - name: Build archive shell: bash