diff options
author | Andrew Chow <github@achow101.com> | 2023-10-30 14:27:37 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-10-31 11:24:21 -0400 |
commit | f6f18eeaa88784e487e9bca8c5ace6c66bd721cc (patch) | |
tree | bfce1d5200fed98422192429566b5a5b20f23d84 /contrib/guix/libexec/codesign.sh | |
parent | 7d6c646cc79ecb7dbeed64e53606eb29cc19ff96 (diff) | |
download | bitcoin-f6f18eeaa88784e487e9bca8c5ace6c66bd721cc.tar.xz |
guix: Zip needs to include all files with time as SOURCE_DATE_EPOCH
The zip for codesigned MacOS distribution needs to have all files have
the same timestamp. These files also need to be included in the zip as
zip is not automatically recursive. We use the same pattern for zip as
is done for the other zip files produced by guix.
Diffstat (limited to 'contrib/guix/libexec/codesign.sh')
-rwxr-xr-x | contrib/guix/libexec/codesign.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/guix/libexec/codesign.sh b/contrib/guix/libexec/codesign.sh index 0b5f77d01e..54edfecb26 100755 --- a/contrib/guix/libexec/codesign.sh +++ b/contrib/guix/libexec/codesign.sh @@ -86,7 +86,11 @@ mkdir -p "$DISTSRC" signapple apply dist/Bitcoin-Qt.app codesignatures/osx/dist # Make a .zip from dist/ - zip "${OUTDIR}/${DISTNAME}-${HOST}.zip" dist/* + cd dist/ + find . -print0 \ + | xargs -0r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" + find . | sort \ + | zip -X@ "${OUTDIR}/${DISTNAME}-${HOST}.zip" ;; *) exit 1 |