mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 02:35:20 +00:00
changes for windows builds
This commit is contained in:
parent
c9ff20b00c
commit
36f08ab2c3
3 changed files with 9 additions and 4 deletions
9
electrum
9
electrum
|
@ -90,11 +90,16 @@ if not is_android:
|
||||||
check_imports()
|
check_imports()
|
||||||
|
|
||||||
# load local module as electrum
|
# load local module as electrum
|
||||||
if is_bundle or is_local or is_android:
|
if is_local or is_android:
|
||||||
import imp
|
import imp
|
||||||
imp.load_module('electrum', *imp.find_module('lib'))
|
imp.load_module('electrum', *imp.find_module('lib'))
|
||||||
imp.load_module('electrum_gui', *imp.find_module('gui'))
|
imp.load_module('electrum_gui', *imp.find_module('gui'))
|
||||||
|
|
||||||
|
# for pyinstaller
|
||||||
|
import electrum
|
||||||
|
import electrum_gui
|
||||||
|
import electrum_plugins
|
||||||
|
|
||||||
from electrum import bitcoin, network
|
from electrum import bitcoin, network
|
||||||
from electrum import SimpleConfig, Network
|
from electrum import SimpleConfig, Network
|
||||||
from electrum.wallet import Wallet, Imported_Wallet
|
from electrum.wallet import Wallet, Imported_Wallet
|
||||||
|
@ -293,7 +298,7 @@ def run_offline_command(config, config_options):
|
||||||
|
|
||||||
def init_plugins(config, gui_name):
|
def init_plugins(config, gui_name):
|
||||||
from electrum.plugins import Plugins
|
from electrum.plugins import Plugins
|
||||||
return Plugins(config, is_bundle or is_local or is_android, gui_name)
|
return Plugins(config, is_local or is_android, gui_name)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
|
|
@ -2586,7 +2586,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
choosers = sorted(coinchooser.COIN_CHOOSERS.keys())
|
choosers = sorted(coinchooser.COIN_CHOOSERS.keys())
|
||||||
chooser_name = coinchooser.get_name(self.config)
|
chooser_name = coinchooser.get_name(self.config)
|
||||||
msg = _('Choose coin (UTXO) selection method. The following are available:\n\n')
|
msg = _('Choose coin (UTXO) selection method. The following are available:\n\n')
|
||||||
msg += '\n\n'.join(fmt_docs(*item) for item in coinchooser.COIN_CHOOSERS.items())
|
#msg += '\n\n'.join(fmt_docs(*item) for item in coinchooser.COIN_CHOOSERS.items())
|
||||||
chooser_label = HelpLabel(_('Coin selection') + ':', msg)
|
chooser_label = HelpLabel(_('Coin selection') + ':', msg)
|
||||||
chooser_combo = QComboBox()
|
chooser_combo = QComboBox()
|
||||||
chooser_combo.addItems(choosers)
|
chooser_combo.addItems(choosers)
|
||||||
|
|
|
@ -30,7 +30,7 @@ from ctypes import cdll, c_char_p
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
name = 'libzbar.dylib'
|
name = 'libzbar.dylib'
|
||||||
elif sys.platform == 'windows':
|
elif sys.platform == 'windows':
|
||||||
name = 'libzbar.dll'
|
name = 'libzbar-0.dll'
|
||||||
else:
|
else:
|
||||||
name = 'libzbar.so.0'
|
name = 'libzbar.so.0'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue