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 758afd1 commit b7c33c1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags
fetch-depth: 0 # Fetch full Git history and tags

- name: Determine version and dist
id: version
run: |
# Get the most recent tag, and check if the latest commit is tagged
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
TAGGED_COMMIT=$(git describe --tags --exact-match 2>/dev/null || echo "notag")
Expand Down Expand Up @@ -51,10 +50,10 @@ jobs:
yum install -y epel-release
yum groupinstall -y 'Development Tools'
yum install -y gtk3-devel glib2-devel gettext-devel desktop-file-utils \
patchelf wget libtool autoconf automake pkgconfig
patchelf wget libtool autoconf automake pkgconfig fuse
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
./autogen.sh
./configure
Expand All @@ -65,15 +64,16 @@ jobs:
cp resources/xnec2c.svg AppDir/usr/share/icons/hicolor/scalable/apps/
cp files/xnec2c.desktop AppDir/usr/share/applications/
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
mv xnec2c*.AppImage xnec2c-${{ github.sha }}.AppImage
# 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-${{ github.sha }}.AppImage
./xnec2c-${{ github.sha }}.AppImage --appimage-extract-and-run -h
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-${{ github.sha }}.AppImage
path: xnec2c-${VERSION}-${{ github.sha }}.AppImage

0 comments on commit b7c33c1

Please sign in to comment.