From 07d6b18ccf31713d83e47b145d4055f0504677a7 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Thu, 11 Jun 2026 15:32:12 -0400 Subject: [PATCH] fix: search all 512-byte boundaries for squashfs offset in linuxdeploy AppImage The 4096-byte-aligned scan raised StopIteration when linuxdeploy's squashfs starts at a non-page-aligned boundary. Scan every 512 bytes instead and exit cleanly with error code 1 if nothing is found. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e43e2b5..4314c31 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -172,7 +172,7 @@ jobs: "https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-x86_64.AppImage" \ -O /tmp/linuxdeploy.AppImage - OFFSET=$(python3 -c "d=open('/tmp/linuxdeploy.AppImage','rb').read();next(print(i) for i in range(4096,len(d),4096) if d[i:i+4] in (b'hsqs',b'sqsh'))") + OFFSET=$(python3 -c "d=open('/tmp/linuxdeploy.AppImage','rb').read();o=[i for i in range(0,len(d),512) if d[i:i+4] in (b'hsqs',b'sqsh')];print(o[0]) if o else exit(1)") unsquashfs -d /tmp/linuxdeploy-root -offset "$OFFSET" /tmp/linuxdeploy.AppImage gcc -o ~/.cache/tauri/linuxdeploy-x86_64.AppImage tools/ld_wrapper.c