Skip to content

Commit b7fac71

Browse files
committed
.github: attempt 312352 to get AppImage build on aarch64
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent c45b07e commit b7fac71

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,27 @@ jobs:
3838
make clean && make && \
3939
(ARCH=aarch64 make appimage || (
4040
echo \"AppImage build failed, trying fallback...\" && \
41-
wget -q -c https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage -O appimagetool && \
42-
chmod +x appimagetool && \
43-
echo \"Downloaded appimagetool, checking file:\" && \
44-
file appimagetool && \
45-
echo \"Attempting to run appimagetool directly...\" && \
46-
(./appimagetool --version 2>&1 || echo \"Direct execution failed with: \$?\") && \
47-
echo \"Extracting appimagetool...\" && \
48-
./appimagetool --appimage-extract && \
41+
apt-get install -y squashfs-tools && \
42+
wget -q -c https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage -O appimagetool.AppImage && \
43+
echo \"Extracting AppImage with unsquashfs...\" && \
44+
chmod +x appimagetool.AppImage && \
45+
./appimagetool.AppImage --appimage-extract 2>/dev/null || unsquashfs -d squashfs-root appimagetool.AppImage && \
4946
mkdir -p AppDir/usr/bin AppDir/usr/share/applications AppDir/usr/share/icons/hicolor/256x256/apps && \
5047
cp demo AppDir/usr/bin/ && \
51-
echo -e \"[Desktop Entry]\nType=Application\nName=Infix Demo\nExec=usr/bin/demo\nIcon=demo\nCategories=Game;\" > AppDir/usr/share/applications/demo.desktop && \
48+
cat > AppDir/usr/share/applications/demo.desktop <<EOF
49+
[Desktop Entry]
50+
Type=Application
51+
Name=Infix Demo
52+
Exec=usr/bin/demo
53+
Icon=demo
54+
Categories=Game;
55+
EOF
5256
cp jack.png AppDir/usr/share/icons/hicolor/256x256/apps/demo.png && \
5357
ln -sf usr/share/applications/demo.desktop AppDir/demo.desktop && \
5458
ln -sf usr/share/icons/hicolor/256x256/apps/demo.png AppDir/demo.png && \
5559
ln -sf usr/bin/demo AppDir/AppRun && \
5660
ARCH=aarch64 squashfs-root/AppRun AppDir InfixDemo-aarch64.AppImage && \
57-
rm -rf AppDir squashfs-root appimagetool
61+
rm -rf AppDir squashfs-root appimagetool.AppImage
5862
))
5963
'
6064
else

0 commit comments

Comments
 (0)