Recently I was dealing with #appimagetool in #forgejo workflow, because I need to build also #aarch64 #appimage on x86_64 host I have opted to user #podman with qemu-static (--platform linux/arm64) and here us the catch. qemu-static expects dynamically build executable, but appimagetool is statically build. This fails spectacularly also --appimage-extract-run will not work. But don’t worry, there is allways the way.
offset=$(LANG=C grep -a -b -o -m 1 'hsqs' appimagetool-aarch64.AppImage | cut -d: -f1)
dd if=appimagetool-aarch64.AppImage of=appimagetool.squashfs bs=1 skip=$offset 2>/dev/null
unsquashfs -q appimagetool.squashfs
./squashfs-root/AppRun "$APP_DIR" target.AppImage
Works as a charm.