@ -2,5 +2,5 @@
rm -rf dist
export PYTHONHASHSEED=22
VERSION=`git describe --tags`
pyinstaller --noconfirm --ascii contrib/osx.spec --version VERSION
pyinstaller --noconfirm --ascii --name $VERSION xcontrib/osx.spec
hdiutil create -fs HFS+ -volname "Electrum" -srcfolder dist/Electrum.app dist/electrum-$VERSION.dmg
@ -4,7 +4,7 @@ from PyInstaller.utils.hooks import collect_data_files, collect_submodules
import sys
for i, x in enumerate(sys.argv):
if x == '--version':
if x == '--name':
VERSION = sys.argv[i+1]
break
else: