From c37a3c415bfaebb292a70e04878f5daa6de79694 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 18 Oct 2026 01:30:50 +0200 Subject: [PATCH] repack-appimage: write .sha256 from the finished file --- apps/desktop/scripts/repack-appimage.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/desktop/scripts/repack-appimage.sh b/apps/desktop/scripts/repack-appimage.sh index d7b36c14..2f9b58e7 100755 --- a/apps/desktop/scripts/repack-appimage.sh +++ b/apps/desktop/scripts/repack-appimage.sh @@ -61,4 +61,8 @@ mksquashfs "$WORK/AppDir" "$WORK/app.squashfs" -root-owned -noappend -comp zstd head -c "$OFFSET" "$IN" > "$OUT" cat "$WORK/app.squashfs" >> "$OUT" chmod +x "$OUT" +# The checksum is computed here, from the finished file, every time: a README or a note must take it from this file +# (apps/desktop/scripts/make-tester-readme.sh) and never from an older build. +( cd "$(dirname "$OUT")" && sha256sum "$(basename "$OUT")" > "$(basename "$OUT").sha256" ) echo "repacked: $OUT ($(stat -c %s "$OUT") bytes)" +cat "$OUT.sha256"