From 8b66d7c8ae0e0df84c7f02dc624def69dbbd78aa Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 28 Nov 2017 18:52:36 +0100 Subject: [PATCH] windows builds: set timestamps before calling makensis --- contrib/build-wine/build-electrum-git.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/build-wine/build-electrum-git.sh b/contrib/build-wine/build-electrum-git.sh index a0160f0d..8366f2c9 100755 --- a/contrib/build-wine/build-electrum-git.sh +++ b/contrib/build-wine/build-electrum-git.sh @@ -64,9 +64,14 @@ cd .. rm -rf dist/ -# build standalone version +# build standalone and portable versions wine "C:/python$PYTHON_VERSION/scripts/pyinstaller.exe" --noconfirm --ascii --name $NAME_ROOT-$VERSION -w deterministic.spec +# set timestamps in dist, in order to make the installer reproducible +pushd dist +find -type f -exec touch -d '2000-01-1 18:00:16' {} + +popd + # build NSIS installer # $VERSION could be passed to the electrum.nsi script, but this would require some rewriting in the script iself. wine "$WINEPREFIX/drive_c/Program Files (x86)/NSIS/makensis.exe" /DPRODUCT_VERSION=$VERSION electrum.nsi @@ -76,3 +81,4 @@ mv electrum-setup.exe $NAME_ROOT-$VERSION-setup.exe cd .. echo "Done." +md5sum dist/electrum*exe