Pyinstaller: Clean cache before building
Clean PyInstaller cache and remove temporary files before building.
This commit is contained in:
committed by
Johann Bauer
parent
fa6c213d5f
commit
d467a5a8ec
@@ -88,7 +88,7 @@ for d in ~/Library/Python/ ~/.pyenv .; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
info "Building binary"
|
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"
|
info "Creating .DMG"
|
||||||
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-$VERSION.dmg || fail "Could not create .DMG"
|
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-$VERSION.dmg || fail "Could not create .DMG"
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ cd ..
|
|||||||
rm -rf dist/
|
rm -rf dist/
|
||||||
|
|
||||||
# build standalone and portable versions
|
# 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
|
# set timestamps in dist, in order to make the installer reproducible
|
||||||
pushd dist
|
pushd dist
|
||||||
|
|||||||
Reference in New Issue
Block a user