Skip to content

Commit

Permalink
Attempt to fix the AppImage in github CI
Browse files Browse the repository at this point in the history
The current one doesn't work when we try to open a file.  I use the gtk
plugin here to hopefully bundle all the needed files.
  • Loading branch information
guillaumechereau committed Dec 27, 2023
1 parent 531d28f commit edfee0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@ jobs:
- name: Build AppImage
run: |
mkdir AppDir
DESTDIR=AppDir PREFIX=/usr make install
curl https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20231206-1/linuxdeploy-x86_64.AppImage \
--output linuxdeploy.AppImage -L -f
chmod +x linuxdeploy.AppImage
./linuxdeploy.AppImage --output=appimage --appdir=AppDir
make appimage
- name: Upload Binary
uses: actions/upload-artifact@v3
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ clean:
analyze:
scan-build scons mode=analyze

# Generate an AppImage. Used by github CI.
appimage:
scons mode=release
mkdir AppDir
DESTDIR=AppDir PREFIX=/usr make install
curl https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20231206-1/linuxdeploy-x86_64.AppImage \
--output linuxdeploy.AppImage -L -f
curl https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh \
--output linuxdeploy-plugin-gtk.sh
chmod +x linuxdeploy.AppImage linuxdeploy-plugin-gtk.sh
./linuxdeploy.AppImage --output=appimage --appdir=AppDir --plugin=gtk

# Targets to install/uninstall goxel and its data files on unix system.
PREFIX ?= /usr/local

Expand Down

0 comments on commit edfee0d

Please sign in to comment.