@@ -33,15 +33,31 @@ jobs:
3333 --entrypoint /bin/bash \
3434 ubuntu:22.04 -c '
3535 apt-get update && \
36- apt-get install -y wget file libsdl2-dev libsdl2-ttf-dev \
36+ apt-get install -y wget file libfuse2 libsdl2-dev libsdl2-ttf-dev \
3737 libsdl2-image-dev libsdl2-mixer-dev build-essential && \
38- make clean && make && make appimage
38+ make clean && make && \
39+ ARCH=aarch64 make appimage
3940 '
4041 else
4142 sudo apt-get update
42- sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev \
43+ sudo apt-get install -y libfuse2 libsdl2-dev libsdl2-ttf-dev \
4344 libsdl2-image-dev libsdl2-mixer-dev
44- make clean && make && make appimage
45+ make clean && make
46+ # Extract and run appimagetool without FUSE
47+ make appimage || (
48+ wget -q -c https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool &&
49+ chmod +x appimagetool &&
50+ ./appimagetool --appimage-extract &&
51+ mkdir -p AppDir/usr/bin AppDir/usr/share/applications AppDir/usr/share/icons/hicolor/256x256/apps &&
52+ cp demo AppDir/usr/bin/ &&
53+ printf '[Desktop Entry]\nType=Application\nName=Infix Demo\nExec=usr/bin/demo\nIcon=demo\nCategories=Game;\n' > AppDir/usr/share/applications/demo.desktop &&
54+ cp jack.png AppDir/usr/share/icons/hicolor/256x256/apps/demo.png &&
55+ ln -sf usr/share/applications/demo.desktop AppDir/demo.desktop &&
56+ ln -sf usr/share/icons/hicolor/256x256/apps/demo.png AppDir/demo.png &&
57+ ln -sf usr/bin/demo AppDir/AppRun &&
58+ ARCH=x86_64 squashfs-root/AppRun AppDir InfixDemo-x86_64.AppImage &&
59+ rm -rf AppDir squashfs-root appimagetool
60+ )
4561 fi
4662
4763 - name : Rename AppImage
0 commit comments