diff --git a/contrib/build-wine/build-electrum-git.sh b/contrib/build-wine/build-electrum-git.sh index a0160f0de..8366f2c9a 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