electrum-personal-server

Maximally lightweight electrum server for a single user
git clone https://git.parazyd.org/electrum-personal-server
Log | Files | Refs | README

commit 03454caedfee92497de6e9dc23c9e2dfe8a11743
parent 46fc4328dea8a17d729b3c42f499a3486cda4a67
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date:   Fri, 19 Apr 2019 20:15:30 +0100

Add entry point and config file for pyinstaller

Diffstat:
Acommon.spec | 33+++++++++++++++++++++++++++++++++
Melectrumpersonalserver/server/common.py | 6++++++
2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/common.spec b/common.spec @@ -0,0 +1,33 @@ +# -*- mode: python -*- +#pyinstaller config file + +block_cipher = None + + +a = Analysis(['electrumpersonalserver\\server\\common.py'], + pathex=['Z:\\eps'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='electrum-personal-server', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + runtime_tmpdir=None, + console=True ) diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py @@ -804,3 +804,9 @@ def rescan_main(): user = rpc_u, password = rpc_p, wallet_filename=config.get("bitcoin-rpc", "wallet_filename").strip()) rescan_script(logger, rpc) + +if __name__ == "__main__": + #entry point for pyinstaller executable + main() + os.system("pause") +