From 64e45da5552e96d3ff3dec731e7b37b51b739f22 Mon Sep 17 00:00:00 2001 From: Eric Wheeler Date: Wed, 14 Aug 2024 15:04:51 -0700 Subject: [PATCH] github: fix build-appimage --- .github/workflows/build-appimage.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-appimage.yml b/.github/workflows/build-appimage.yml index 7fefe10..30e74d9 100644 --- a/.github/workflows/build-appimage.yml +++ b/.github/workflows/build-appimage.yml @@ -52,5 +52,28 @@ jobs: yum install -y gtk3-devel glib2-devel gettext-devel desktop-file-utils \ patchelf wget libtool autoconf automake pkgconfig fuse fuse-libs - wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64 + wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage + chmod +x appimagetool-x86_64.AppImage + ./autogen.sh + ./configure + make + + mkdir -p AppDir/usr/bin + cp src/xnec2c AppDir/usr/bin/ + cp resources/xnec2c.svg AppDir/usr/share/icons/hicolor/scalable/apps/ + cp files/xnec2c.desktop AppDir/usr/share/applications/ + + # Build the AppImage with embedded runtime and include version in filename + ./appimagetool-x86_64.AppImage AppDir --runtime-arch=x86_64 -n --embed-runtime + mv xnec2c*.AppImage xnec2c-${VERSION}-${{ github.sha }}.AppImage + + chmod +x xnec2c-${VERSION}-${{ github.sha }}.AppImage + ./xnec2c-${VERSION}-${{ github.sha }}.AppImage --appimage-extract-and-run -h + " + + - name: Upload the AppImage + uses: actions/upload-artifact@v2 + with: + name: xnec2c.AppImage + path: xnec2c-${VERSION}-${{ github.sha }}.AppImage