windows builds: set timestamps before calling makensis
This commit is contained in:
parent
412ce18201
commit
8b66d7c8ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue