File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 3636 apt-get install -y wget file libfuse2 xxd libsdl2-dev libsdl2-ttf-dev \
3737 libsdl2-image-dev libsdl2-mixer-dev build-essential && \
3838 make clean && make && \
39- ARCH=aarch64 make appimage
39+ (ARCH=aarch64 make appimage || (
40+ wget -q -c https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage -O appimagetool && \
41+ chmod +x appimagetool && \
42+ ./appimagetool --appimage-extract && \
43+ mkdir -p AppDir/usr/bin AppDir/usr/share/applications AppDir/usr/share/icons/hicolor/256x256/apps && \
44+ cp demo AppDir/usr/bin/ && \
45+ printf \"[Desktop Entry]\\nType=Application\\nName=Infix Demo\\nExec=usr/bin/demo\\nIcon=demo\\nCategories=Game;\\n\" > AppDir/usr/share/applications/demo.desktop && \
46+ cp jack.png AppDir/usr/share/icons/hicolor/256x256/apps/demo.png && \
47+ ln -sf usr/share/applications/demo.desktop AppDir/demo.desktop && \
48+ ln -sf usr/share/icons/hicolor/256x256/apps/demo.png AppDir/demo.png && \
49+ ln -sf usr/bin/demo AppDir/AppRun && \
50+ ARCH=aarch64 squashfs-root/AppRun AppDir InfixDemo-aarch64.AppImage && \
51+ rm -rf AppDir squashfs-root appimagetool
52+ ))
4053 '
4154 else
4255 sudo apt-get update
Original file line number Diff line number Diff line change @@ -67,10 +67,11 @@ appimage: $(TARGET)
6767 @ln -sf usr/share/applications/demo.desktop AppDir/demo.desktop
6868 @ln -sf usr/share/icons/hicolor/256x256/apps/demo.png AppDir/demo.png
6969 @ln -sf usr/bin/demo AppDir/AppRun
70- @wget -q -c https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
71- @chmod +x appimagetool
72- @./appimagetool AppDir InfixDemo-x86_64.AppImage
73- @rm -rf AppDir appimagetool
74- @echo " AppImage created: InfixDemo-x86_64.AppImage"
70+ @ARCH=$$ {ARCH:-x86_64}; \
71+ wget -q -c https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$$ {ARCH}.AppImage -O appimagetool && \
72+ chmod +x appimagetool && \
73+ ./appimagetool AppDir InfixDemo-$$ {ARCH}.AppImage && \
74+ rm -rf AppDir appimagetool && \
75+ echo " AppImage created: InfixDemo-$$ {ARCH}.AppImage"
7576
7677.PHONY : all clean run debug appimage docker-build docker-run
You can’t perform that action at this time.
0 commit comments