Skip to content

Commit f6f18ee

Browse files
committed
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.
1 parent 7d6c646 commit f6f18ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/guix/libexec/codesign.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ mkdir -p "$DISTSRC"
8686
signapple apply dist/Bitcoin-Qt.app codesignatures/osx/dist
8787

8888
# Make a .zip from dist/
89-
zip "${OUTDIR}/${DISTNAME}-${HOST}.zip" dist/*
89+
cd dist/
90+
find . -print0 \
91+
| xargs -0r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}"
92+
find . | sort \
93+
| zip -X@ "${OUTDIR}/${DISTNAME}-${HOST}.zip"
9094
;;
9195
*)
9296
exit 1

0 commit comments

Comments
 (0)