commit db8febea15a4ca7e878fcc09ecc4317ee20cbe27
parent 91539189d5292bec104585013c4b94c74b115c1a
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 11 Nov 2017 17:59:47 +0100
osx: parameters for Info.plist
Diffstat:
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/contrib/make_osx b/contrib/make_osx
@@ -2,6 +2,5 @@
rm -rf dist
export PYTHONHASHSEED=22
VERSION=`git describe --tags`
-pyinstaller --noconfirm --ascii contrib/osx.spec
+pyinstaller --noconfirm --ascii contrib/osx.spec --version VERSION
hdiutil create -fs HFS+ -volname "Electrum" -srcfolder dist/Electrum.app dist/electrum-$VERSION.dmg
-
diff --git a/contrib/osx.spec b/contrib/osx.spec
@@ -2,6 +2,14 @@
from PyInstaller.utils.hooks import collect_data_files, collect_submodules
+import sys
+for i, x in enumerate(sys.argv):
+ if x == '--version':
+ VERSION = sys.argv[i+1]
+ break
+else:
+ raise BaseException('no version')
+
home = '/Users/voegtlin/electrum/'
block_cipher=None
@@ -63,7 +71,12 @@ exe = EXE(pyz,
console=False)
app = BUNDLE(exe,
+ version = VERSION,
name='Electrum.app',
icon=home+'electrum.icns',
- bundle_identifier=None)
+ bundle_identifier=None,
+ info_plist = {
+ 'NSHighResolutionCapable':'True'
+ }
+)