Skip to content

Commit 4d69492

Browse files
committed
More renaming
Deactivate plugins
1 parent 7d59c5a commit 4d69492

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+238
-286
lines changed

MANIFEST.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
include LICENCE RELEASE-NOTES AUTHORS
22
include README.rst
3-
include electrum-gold.conf.sample
4-
include electrum-gold.desktop
3+
include electrumg.conf.sample
4+
include electrumg.desktop
55
include *.py
6-
include electrum-gold
6+
include electrumg
77
include contrib/requirements/requirements.txt
88
include contrib/requirements/requirements-hw.txt
99
recursive-include lib *.py

contrib/build-osx/make_osx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ VERSION=`git describe --tags`
2020
# Paramterize
2121
PYTHON_VERSION=3.6.4
2222
BUILDDIR=/tmp/electrum-build
23-
PACKAGE=ElectrumGold
23+
PACKAGE=ElectrumG
2424
GIT_REPO=https://github.com/BTCGPU/electrum
2525

2626

@@ -70,9 +70,9 @@ python3 -m pip install -Ir ./contrib/deterministic-build/requirements.txt --user
7070
python3 -m pip install -Ir ./contrib/deterministic-build/requirements-binaries.txt --user || \
7171
fail "Could not install requirements"
7272

73-
info "Installing hardware wallet requirements..."
74-
python3 -m pip install -Ir ./contrib/deterministic-build/requirements-hw.txt --user || \
75-
fail "Could not install hardware wallet requirements"
73+
#info "Installing hardware wallet requirements..."
74+
#python3 -m pip install -Ir ./contrib/deterministic-build/requirements-hw.txt --user || \
75+
#fail "Could not install hardware wallet requirements"
7676

7777
info "Building $PACKAGE..."
7878
python3 setup.py install --user > /dev/null || fail "Could not build $PACKAGE"
@@ -88,4 +88,4 @@ info "Building binary"
8888
pyinstaller --noconfirm --ascii --name $VERSION contrib/build-osx/osx.spec || fail "Could not build binary"
8989

9090
info "Creating .DMG"
91-
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-gold-$VERSION.dmg || fail "Could not create .DMG"
91+
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrumg-$VERSION.dmg || fail "Could not create .DMG"

contrib/build-osx/osx.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ from PyInstaller.utils.hooks import collect_data_files, collect_submodules, coll
55
import sys
66
import os
77

8-
PACKAGE='ElectrumGold'
9-
PYPKG='electrum-gold'
10-
MAIN_SCRIPT='electrum-gold'
11-
ICONS_FILE='electrum-gold.icns'
8+
PACKAGE='ElectrumG'
9+
PYPKG='electrumg'
10+
MAIN_SCRIPT='electrumg'
11+
ICONS_FILE='electrumg.icns'
1212

1313
for i, x in enumerate(sys.argv):
1414
if x == '--name':

contrib/build-wine/build-electrum-git.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
NAME_ROOT=electrum-gold
3+
NAME_ROOT=electrumg
44
PYTHON_VERSION=3.5.4
55

66
# These settings probably don't need any change
@@ -49,18 +49,18 @@ echo "Last commit: $VERSION"
4949
find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
5050
popd
5151

52-
rm -rf $WINEPREFIX/drive_c/electrum-gold
53-
cp -r electrum $WINEPREFIX/drive_c/electrum-gold
52+
rm -rf $WINEPREFIX/drive_c/electrumg
53+
cp -r electrum $WINEPREFIX/drive_c/electrumg
5454
cp electrum/LICENCE .
55-
cp -r electrum-locale/locale $WINEPREFIX/drive_c/electrum-gold/lib/
56-
cp electrum-icons/icons_rc.py $WINEPREFIX/drive_c/electrum-gold/gui/qt/
55+
cp -r electrum-locale/locale $WINEPREFIX/drive_c/electrumg/lib/
56+
cp electrum-icons/icons_rc.py $WINEPREFIX/drive_c/electrumg/gui/qt/
5757

5858
# Install frozen dependencies
5959
$PYTHON -m pip install -r ../../deterministic-build/requirements.txt
6060

6161
$PYTHON -m pip install -r ../../deterministic-build/requirements-hw.txt
6262

63-
pushd $WINEPREFIX/drive_c/electrum-gold
63+
pushd $WINEPREFIX/drive_c/electrumg
6464
$PYTHON setup.py install
6565
popd
6666

@@ -81,7 +81,7 @@ popd
8181
wine "$WINEPREFIX/drive_c/Program Files (x86)/NSIS/makensis.exe" /DPRODUCT_VERSION=$VERSION electrum.nsi
8282

8383
cd dist
84-
mv electrum-gold-setup.exe $NAME_ROOT-$VERSION-setup.exe
84+
mv electrumg-setup.exe $NAME_ROOT-$VERSION-setup.exe
8585
cd ..
8686

8787
echo "Done."

contrib/build-wine/deterministic.spec

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else:
1111
raise BaseException('no name')
1212

1313

14-
home = 'C:\\electrum-gold\\'
14+
home = 'C:\\electrumg\\'
1515

1616
# see https://github.com/pyinstaller/pyinstaller/issues/2005
1717
hiddenimports = []
@@ -42,7 +42,7 @@ datas += collect_data_files('btchip')
4242
datas += collect_data_files('keepkeylib')
4343

4444
# We don't put these files in to actually include them in the script but to make the Analysis method scan them for imports
45-
a = Analysis([home+'electrum-gold',
45+
a = Analysis([home+'electrumg',
4646
home+'gui/qt/main_window.py',
4747
home+'gui/text.py',
4848
home+'lib/util.py',
@@ -86,11 +86,11 @@ exe_standalone = EXE(
8686
a.scripts,
8787
a.binaries,
8888
a.datas,
89-
name=os.path.join('build\\pyi.win32\\electrum-gold', cmdline_name + ".exe"),
89+
name=os.path.join('build\\pyi.win32\\electrumg', cmdline_name + ".exe"),
9090
debug=False,
9191
strip=None,
9292
upx=False,
93-
icon=home+'icons/electrum-gold.ico',
93+
icon=home+'icons/electrumg.ico',
9494
console=False)
9595
# 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
9696

@@ -99,11 +99,11 @@ exe_portable = EXE(
9999
a.scripts,
100100
a.binaries,
101101
a.datas + [ ('is_portable', 'README.md', 'DATA' ) ],
102-
name=os.path.join('build\\pyi.win32\\electrum-gold', cmdline_name + "-portable.exe"),
102+
name=os.path.join('build\\pyi.win32\\electrumg', cmdline_name + "-portable.exe"),
103103
debug=False,
104104
strip=None,
105105
upx=False,
106-
icon=home+'icons/electrum-gold.ico',
106+
icon=home+'icons/electrumg.ico',
107107
console=False)
108108

109109
#####
@@ -113,11 +113,11 @@ exe_dependent = EXE(
113113
pyz,
114114
a.scripts,
115115
exclude_binaries=True,
116-
name=os.path.join('build\\pyi.win32\\electrum-gold', cmdline_name),
116+
name=os.path.join('build\\pyi.win32\\electrumg', cmdline_name),
117117
debug=False,
118118
strip=None,
119119
upx=False,
120-
icon=home+'icons/electrum-gold.ico',
120+
icon=home+'icons/electrumg.ico',
121121
console=False)
122122

123123
coll = COLLECT(
@@ -128,6 +128,6 @@ coll = COLLECT(
128128
strip=None,
129129
upx=True,
130130
debug=False,
131-
icon=home+'icons/electrum-gold.ico',
131+
icon=home+'icons/electrumg.ico',
132132
console=False,
133-
name=os.path.join('dist', 'electrum-gold'))
133+
name=os.path.join('dist', 'electrumg'))

contrib/build-wine/electrum.nsi

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;--------------------------------
77
;Variables
88

9-
!define PRODUCT_NAME "Electrum Gold"
9+
!define PRODUCT_NAME "ElectrumG"
1010
!define PRODUCT_WEB_SITE "https://github.com/BTCGPU/electrum"
1111
!define PRODUCT_PUBLISHER "BitcoinGold Organization"
1212
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
@@ -16,7 +16,7 @@
1616

1717
;Name and file
1818
Name "${PRODUCT_NAME}"
19-
OutFile "dist/electrum-gold-setup.exe"
19+
OutFile "dist/electrumg-setup.exe"
2020

2121
;Default installation folder
2222
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
@@ -72,7 +72,7 @@
7272
!define MUI_ABORTWARNING
7373
!define MUI_ABORTWARNING_TEXT "Are you sure you wish to abort the installation of ${PRODUCT_NAME}?"
7474

75-
!define MUI_ICON "tmp\electrum\icons\electrum-gold.ico"
75+
!define MUI_ICON "tmp\electrum\icons\electrumg.ico"
7676

7777
;--------------------------------
7878
;Pages
@@ -110,8 +110,8 @@ Section
110110
Delete "$SMPROGRAMS\${PRODUCT_NAME}\*.*"
111111

112112
;Files to pack into the installer
113-
File /r "dist\electrum-gold\*.*"
114-
File "..\..\icons\electrum-gold.ico"
113+
File /r "dist\electrumg\*.*"
114+
File "..\..\icons\electrumg.ico"
115115

116116
;Store installation folder
117117
WriteRegStr HKCU "Software\${PRODUCT_NAME}" "" $INSTDIR
@@ -122,29 +122,29 @@ Section
122122

123123
;Create desktop shortcut
124124
DetailPrint "Creating desktop shortcut..."
125-
CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" ""
125+
CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\electrumg-${PRODUCT_VERSION}.exe" ""
126126

127127
;Create start-menu items
128128
DetailPrint "Creating start-menu items..."
129129
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
130130
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
131-
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" "" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" 0
132-
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME} Testnet.lnk" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" "--testnet" "$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe" 0
131+
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\electrumg-${PRODUCT_VERSION}.exe" "" "$INSTDIR\electrumg-${PRODUCT_VERSION}.exe" 0
132+
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME} Testnet.lnk" "$INSTDIR\electrumg-${PRODUCT_VERSION}.exe" "--testnet" "$INSTDIR\electrumg-${PRODUCT_VERSION}.exe" 0
133133

134134

135-
;Links bitcoingold: URI's to ElectrumGold
135+
;Links bitcoingold: URI's to ElectrumG
136136
WriteRegStr HKCU "Software\Classes\bitcoingold" "" "URL:bitcoingold Protocol"
137137
WriteRegStr HKCU "Software\Classes\bitcoingold" "URL Protocol" ""
138-
WriteRegStr HKCU "Software\Classes\bitcoingold" "DefaultIcon" "$\"$INSTDIR\electrum-gold.ico, 0$\""
139-
WriteRegStr HKCU "Software\Classes\bitcoingold\shell\open\command" "" "$\"$INSTDIR\electrum-gold-${PRODUCT_VERSION}.exe$\" $\"%1$\""
138+
WriteRegStr HKCU "Software\Classes\bitcoingold" "DefaultIcon" "$\"$INSTDIR\electrumg.ico, 0$\""
139+
WriteRegStr HKCU "Software\Classes\bitcoingold\shell\open\command" "" "$\"$INSTDIR\electrumg-${PRODUCT_VERSION}.exe$\" $\"%1$\""
140140

141141
;Adds an uninstaller possibilty to Windows Uninstall or change a program section
142142
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
143143
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe"
144144
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
145145
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
146146
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
147-
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\electrum-gold.ico"
147+
WriteRegStr HKCU "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\electrumg.ico"
148148

149149
;Fixes Windows broken size estimates
150150
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2

contrib/freeze_packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Run this after a new release to update dependencies
33

4-
venv_dir=~/.electrum-venv
4+
venv_dir=~/.electrumg-venv
55
contrib=$(dirname "$0")
66

77
which virtualenv > /dev/null 2>&1 || { echo "Please install virtualenv" && exit 1; }
@@ -16,7 +16,7 @@ for i in '' '-hw' '-binaries'; do
1616

1717
python -m pip install -r $contrib/requirements/requirements${i}.txt --upgrade
1818

19-
pip freeze | sed '/^Electrum/ d' > $contrib/deterministic-build/requirements${i}.txt
19+
pip freeze | sed '/^ElectrumG/ d' > $contrib/deterministic-build/requirements${i}.txt
2020
done
2121

2222
echo "Done. Updated requirements"

contrib/make_download

Lines changed: 0 additions & 51 deletions
This file was deleted.

contrib/make_locale

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ os.system(cmd)
2727

2828
os.chdir('lib')
2929

30-
crowdin_identifier = 'electrum'
31-
crowdin_file_name = 'files[electrum-client/messages.pot]'
30+
crowdin_identifier = 'electrumg'
31+
crowdin_file_name = 'files[electrumg-client/messages.pot]'
3232
locale_file_name = 'locale/messages.pot'
3333
crowdin_api_key = None
3434

@@ -60,7 +60,7 @@ zfobj = zipfile.ZipFile(io.BytesIO(s))
6060

6161
print('Unzip translations')
6262
for name in zfobj.namelist():
63-
if not name.startswith('electrum-client/locale'):
63+
if not name.startswith('electrumg-client/locale'):
6464
continue
6565
if name.endswith('/'):
6666
if not os.path.exists(name[16:]):

electrum-gold renamed to electrumg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- mode: python -*-
33
#
4-
# ElectrumGold - lightweight BitcoinGold client
4+
# ElectrumG - lightweight BitcoinGold client
55
# Copyright (C) 2011 thomasv@gitorious
66
# Copyright (C) 2018 [email protected]
77
#
@@ -44,7 +44,7 @@ if jnius:
4444

4545
script_dir = os.path.dirname(os.path.realpath(__file__))
4646
is_bundle = getattr(sys, 'frozen', False)
47-
is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "electrum-gold.desktop"))
47+
is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "electrumg.desktop"))
4848
is_android = 'ANDROID_DATA' in os.environ
4949

5050
# move this back to gui/kivy/__init.py once plugins are moved
@@ -194,7 +194,7 @@ def init_daemon(config_options):
194194
storage = WalletStorage(config.get_wallet_path())
195195
if not storage.file_exists():
196196
print_msg("Error: Wallet file not found.")
197-
print_msg("Type 'electrum-gold create' to create a new wallet, or provide a path to a wallet with the -w option")
197+
print_msg("Type 'electrumg create' to create a new wallet, or provide a path to a wallet with the -w option")
198198
sys.exit(0)
199199
if storage.is_encrypted():
200200
if storage.is_encrypted_with_hw_device():
@@ -232,7 +232,7 @@ def init_cmdline(config_options, server):
232232

233233
if cmd.requires_wallet and not storage.file_exists():
234234
print_msg("Error: Wallet file not found.")
235-
print_msg("Type 'electrum-gold create' to create a new wallet, or provide a path to a wallet with the -w option")
235+
print_msg("Type 'electrumg create' to create a new wallet, or provide a path to a wallet with the -w option")
236236
sys.exit(0)
237237

238238
# important warning
@@ -398,7 +398,7 @@ if __name__ == '__main__':
398398
config_options['portable'] = True
399399

400400
if config_options.get('portable'):
401-
config_options['electrum-gold_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum-gold_data')
401+
config_options['electrumg_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrumg_data')
402402

403403
# kivy sometimes freezes when we write to sys.stderr
404404
set_verbosity(config_options.get('verbose') and config_options.get('gui')!='kivy')

electrum-gold-env renamed to electrumg-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ fi
2121

2222
export PYTHONPATH="/usr/local/lib/python${PYTHON_VER}/site-packages:$PYTHONPATH"
2323

24-
./electrum-gold "$@"
24+
./electrumg "$@"
2525

2626
deactivate

electrum-gold.conf.sample renamed to electrumg.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Configuration file for the electrum client
22
# Settings defined here are shared across wallets
33
#
4-
# copy this file to /etc/electrum-gold.conf if you want read-only settings
4+
# copy this file to /etc/electrumg.conf if you want read-only settings
55

66
[client]
7-
server = electrum-gold.novit.ro:50001:t
7+
server = electrumg.novit.ro:50001:t
88
proxy = None
99
gap_limit = 5
1010
# booleans use python syntax

0 commit comments

Comments
 (0)