Skip to content

Commit

Permalink
github: fix build-appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wheeler committed Aug 14, 2024
1 parent fcef8f0 commit 64e45da
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 64e45da

Please sign in to comment.