mac build: try to improve .app startup time on MacOS 10.15

Create a pyinstaller "onedir" executable instead of a "onefile" executable.

Note that the name change from "Electrum" to "run_electrum" affects the
name of the internal binary (usually not exposed to users). This is
needed to avoid a collision with the "electrum" folder inside the .app
(just like in the source tree).

based on 03c3eca856

maybe fixes #6225
This commit is contained in:
SomberNight 2020-06-23 16:07:07 +02:00
parent 0b5d9185ff
commit 75cdae0e5b
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -142,9 +142,8 @@ pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
name=PACKAGE,
exclude_binaries=True,
name=MAIN_SCRIPT,
debug=False,
strip=False,
upx=True,
@ -154,6 +153,9 @@ exe = EXE(
app = BUNDLE(
exe,
a.binaries,
a.zipfiles,
a.datas,
version = VERSION,
name=PACKAGE + '.app',
icon=electrum+ICONS_FILE,