Skip to content

Commit

Permalink
More rebranding of Windows build scripts for Namecoin.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed May 25, 2018
1 parent 52b3522 commit c37cb9a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions contrib/build-wine/deterministic.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ else:
PYTHON_VERSION = '3.5.4'
PYHOME = 'c:/python' + PYTHON_VERSION

home = 'C:\\electrum\\'
home = 'C:\\electrum-nmc\\'

# see https://github.com/pyinstaller/pyinstaller/issues/2005
hiddenimports = []
Expand All @@ -29,22 +29,22 @@ binaries = [(PYHOME+"/libusb-1.0.dll", ".")]
binaries += [b for b in collect_dynamic_libs('PyQt5') if 'qwindowsvista' in b[0]]

datas = [
(home+'lib/currencies.json', 'electrum'),
(home+'lib/servers.json', 'electrum'),
(home+'lib/checkpoints.json', 'electrum'),
(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+'plugins', 'electrum_plugins'),
(home+'lib/currencies.json', 'electrum_nmc'),
(home+'lib/servers.json', 'electrum_nmc'),
(home+'lib/checkpoints.json', 'electrum_nmc'),
(home+'lib/servers_testnet.json', 'electrum_nmc'),
(home+'lib/checkpoints_testnet.json', 'electrum_nmc'),
(home+'lib/wordlist/english.txt', 'electrum_nmc/wordlist'),
(home+'lib/locale', 'electrum_nmc/locale'),
(home+'plugins', 'electrum_nmc_plugins'),
('C:\\Program Files (x86)\\ZBar\\bin\\', '.')
]
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',
a = Analysis([home+'electrum-nmc',
home+'gui/qt/main_window.py',
home+'gui/text.py',
home+'lib/util.py',
Expand Down Expand Up @@ -88,7 +88,7 @@ exe_standalone = EXE(
a.scripts,
a.binaries,
a.datas,
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name + ".exe"),
name=os.path.join('build\\pyi.win32\\electrum-nmc', cmdline_name + ".exe"),
debug=False,
strip=None,
upx=False,
Expand All @@ -101,7 +101,7 @@ exe_portable = EXE(
a.scripts,
a.binaries,
a.datas + [ ('is_portable', 'README.md', 'DATA' ) ],
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name + "-portable.exe"),
name=os.path.join('build\\pyi.win32\\electrum-nmc', cmdline_name + "-portable.exe"),
debug=False,
strip=None,
upx=False,
Expand All @@ -115,7 +115,7 @@ exe_dependent = EXE(
pyz,
a.scripts,
exclude_binaries=True,
name=os.path.join('build\\pyi.win32\\electrum', cmdline_name),
name=os.path.join('build\\pyi.win32\\electrum-nmc', cmdline_name),
debug=False,
strip=None,
upx=False,
Expand All @@ -132,4 +132,4 @@ coll = COLLECT(
debug=False,
icon=home+'icons/electrum.ico',
console=False,
name=os.path.join('dist', 'electrum'))
name=os.path.join('dist', 'electrum-nmc'))
4 changes: 2 additions & 2 deletions contrib/build-wine/electrum.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
!define MUI_ABORTWARNING
!define MUI_ABORTWARNING_TEXT "Are you sure you wish to abort the installation of ${PRODUCT_NAME}?"

!define MUI_ICON "tmp\electrum\icons\electrum.ico"
!define MUI_ICON "tmp\electrum-nmc\icons\electrum.ico"

;--------------------------------
;Pages
Expand Down Expand Up @@ -110,7 +110,7 @@ Section
Delete "$SMPROGRAMS\${PRODUCT_NAME}\*.*"

;Files to pack into the installer
File /r "dist\electrum\*.*"
File /r "dist\electrum-nmc\*.*"
File "..\..\icons\electrum.ico"

;Store installation folder
Expand Down

0 comments on commit c37cb9a

Please sign in to comment.