Skip to content

Commit

Permalink
Changed deterministic.spec windows build file
Browse files Browse the repository at this point in the history
  • Loading branch information
sulmone committed Jan 25, 2018
1 parent c540086 commit a616ce5
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions contrib/build-wine/deterministic.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ else:
raise BaseException('no name')


home = 'C:\\electrum\\'
home = 'C:\\Users\\csulm\\code\\crypto\\electrum-zcl\\'

# see https://github.com/pyinstaller/pyinstaller/issues/2005
hiddenimports = []
hiddenimports += collect_submodules('trezorlib')
hiddenimports += collect_submodules('btchip')
hiddenimports += collect_submodules('keepkeylib')
# hiddenimports += collect_submodules('trezorlib')
# hiddenimports += collect_submodules('btchip')
# hiddenimports += collect_submodules('keepkeylib')

datas = [
(home+'lib/currencies.json', 'electrum'),
Expand All @@ -26,12 +26,12 @@ datas = [
(home+'lib/servers_testnet.json', 'electrum'),
(home+'lib/checkpoints_testnet.json', 'electrum'),
(home+'lib/wordlist/english.txt', 'electrum/wordlist'),
(home+'lib/locale', 'electrum/locale'),
# (home+'lib/locale', 'electrum/locale'),
(home+'plugins', 'electrum_plugins'),
]
datas += collect_data_files('trezorlib')
datas += collect_data_files('btchip')
datas += collect_data_files('keepkeylib')
# datas += collect_data_files('trezorlib')
# datas += collect_data_files('btchip')
# datas += collect_data_files('keepkeylib')

# We don't put these files in to actually include them in the script but to make the Analysis method scan them for imports
a = Analysis([home+'electrum',
Expand Down Expand Up @@ -85,40 +85,40 @@ exe_standalone = EXE(
console=False)
# 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_dependent = EXE(
pyz,
a.scripts,
exclude_binaries=True,
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name),
debug=False,
strip=None,
upx=False,
icon=home+'icons/electrum.ico',
console=False)

coll = COLLECT(
exe_dependent,
a.binaries,
a.zipfiles,
a.datas,
strip=None,
upx=True,
debug=False,
icon=home+'icons/electrum.ico',
console=False,
name=os.path.join('dist', 'electrum'))
# exe_portable = EXE(
# pyz,
# a.scripts,
# a.binaries,
# a.datas,
# 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_dependent = EXE(
# pyz,
# a.scripts,
# exclude_binaries=True,
# name=os.path.join('build\\pyi.win32\\electrum', cmdline_name),
# debug=False,
# strip=None,
# upx=False,
# icon=home+'icons/electrum.ico',
# console=False)

# coll = COLLECT(
# exe_dependent,
# a.binaries,
# a.zipfiles,
# a.datas,
# strip=None,
# upx=True,
# debug=False,
# icon=home+'icons/electrum.ico',
# console=False,
# name=os.path.join('dist', 'electrum'))

0 comments on commit a616ce5

Please sign in to comment.