From b12ebf6a964cf23012f365cad3d9e6803cdd2954 Mon Sep 17 00:00:00 2001 From: Michael Altfield Date: Sun, 31 Mar 2024 18:10:29 -0500 Subject: [PATCH] also strip '--mkfs-time 0' Apparently appimagetool passes '--mkfs-time 0' to `mksquashfs`. It does this to make builds reproducible, but we set SOURCE_DATE_EPOCH for this purpose. If *both* are passed, then `mksquashfs`, exits with an error. To be consistent, this commit just strips the `--mkfs-time 0` option * https://github.com/BusKill/buskill-app/issues/78#issuecomment-2028941568 * https://github.com/AppImage/AppImageKit/issues/1202 --- build/linux/buildAppImage.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/linux/buildAppImage.sh b/build/linux/buildAppImage.sh index 94247470..ad5ab81e 100755 --- a/build/linux/buildAppImage.sh +++ b/build/linux/buildAppImage.sh @@ -469,6 +469,7 @@ export SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH}" # the new version of mksquashfs no longer supports the '-mkfs-fixed-time' # argument, so we remove it args=\$(echo "\$@" | sed -e 's/-mkfs-fixed-time 0//') +args=\$(echo "\$@" | sed -e 's/-mkfs-time 0//') $(which mksquashfs) \$args EOF