tAdd entry point and config file for pyinstaller - electrum-personal-server - Maximally lightweight electrum server for a single user HTML git clone https://git.parazyd.org/electrum-personal-server DIR Log DIR Files DIR Refs DIR README --- DIR commit 03454caedfee92497de6e9dc23c9e2dfe8a11743 DIR parent 46fc4328dea8a17d729b3c42f499a3486cda4a67 HTML 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: A common.spec | 33 +++++++++++++++++++++++++++++++ M electrumpersonalserver/server/comm… | 6 ++++++ 2 files changed, 39 insertions(+), 0 deletions(-) --- DIR diff --git a/common.spec b/common.spec t@@ -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 ) DIR diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py t@@ -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") +