Browse Source

Pyinstaller: Clean cache before building

Clean PyInstaller cache and remove temporary files before building.
3.2.x
Lucas Betschart 7 years ago
committed by Johann Bauer
parent
commit
d467a5a8ec
  1. 2
      contrib/build-osx/make_osx
  2. 2
      contrib/build-wine/build-electrum-git.sh

2
contrib/build-osx/make_osx

@ -88,7 +88,7 @@ for d in ~/Library/Python/ ~/.pyenv .; do
done
info "Building binary"
pyinstaller --noconfirm --ascii --name $VERSION contrib/build-osx/osx.spec || fail "Could not build binary"
pyinstaller --noconfirm --ascii --clean --name $VERSION contrib/build-osx/osx.spec || fail "Could not build binary"
info "Creating .DMG"
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-$VERSION.dmg || fail "Could not create .DMG"

2
contrib/build-wine/build-electrum-git.sh

@ -75,7 +75,7 @@ cd ..
rm -rf dist/
# build standalone and portable versions
wine "C:/python$PYTHON_VERSION/scripts/pyinstaller.exe" --noconfirm --ascii --name $NAME_ROOT-$VERSION -w deterministic.spec
wine "C:/python$PYTHON_VERSION/scripts/pyinstaller.exe" --noconfirm --ascii --clean --name $NAME_ROOT-$VERSION -w deterministic.spec
# set timestamps in dist, in order to make the installer reproducible
pushd dist

Loading…
Cancel
Save