@ -26,7 +26,6 @@ datas = [
(home+'lib/wordlist/english.txt', 'electrum/wordlist'),
(home+'lib/wordlist/english.txt', 'electrum/wordlist'),
(home+'lib/locale', 'electrum/locale'),
(home+'lib/locale', 'electrum/locale'),
(home+'plugins', 'electrum_plugins'),
(home+'plugins', 'electrum_plugins'),
#(home+'packages/requests/cacert.pem', 'requests/cacert.pem')
]
]
datas += collect_data_files('trezorlib')
datas += collect_data_files('trezorlib')
datas += collect_data_files('btchip')
datas += collect_data_files('btchip')
@ -70,44 +69,54 @@ pyz = PYZ(a.pure)
#####
#####
# "standalone" exe with all dependencies packed into it
# "standalone" exe with all dependencies packed into it
# (or "portable", depending on cmdline_name)
exe_standalone = EXE(
exe_standalone = EXE(
pyz,
pyz,
a.scripts,
a.scripts,
a.binaries,
a.binaries,
a.datas,
a.datas,
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name),
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name + ".exe"),
debug=False,
debug=False,
strip=None,
strip=None,
upx=False,
upx=False,
icon=home+'icons/electrum.ico',
icon=home+'icons/electrum.ico',
console=False)
console=False)
# The console True makes an annoying black box pop up, but it does make Electrum output command line commands, with this turned off no output will be given but commands can still be used
# console=True makes an annoying black box pop up, but it does make Electrum output command line commands, with this turned off no output will be given but commands can still be used
exe_portable = EXE(
pyz,
a.scripts,
a.binaries,
a.datas + [ ('is_portable', 'README.md', 'DATA' ) ],
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name + "-portable.exe"),
debug=False,
strip=None,
upx=False,
icon=home+'icons/electrum.ico',
console=False)
#####
#####
# exe and separate files that NSIS uses to build installer "setup" exe
# exe and separate files that NSIS uses to build installer "setup" exe
# FIXME: this is redundantly done again, when building the "portable" exe
exe_dependent = EXE(
exe_dependent = EXE(
pyz,
pyz,
a.scripts,
a.scripts,
exclude_binaries=True,
exclude_binaries=True,
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name),
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name),
debug=False,
debug=False,
strip=None,
strip=None,
upx=False,
upx=False,
icon=home+'icons/electrum.ico',
icon=home+'icons/electrum.ico',
console=False)
console=False)
coll = COLLECT(
coll = COLLECT(
exe_dependent,
exe_dependent,
a.binaries,
a.binaries,
a.zipfiles,
a.zipfiles,
a.datas,
a.datas,
strip=None,
strip=None,
upx=True,
upx=True,
debug=False,
debug=False,
icon=home+'icons/electrum.ico',
icon=home+'icons/electrum.ico',
console=False,
console=False,
name=os.path.join('dist', 'electrum'))
name=os.path.join('dist', 'electrum'))