From 4185a3b9e3714b2efea55e873ad7d9ac7a808c4c Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 22 Sep 2018 19:13:03 -0300 Subject: [PATCH] add a pyinstaller hook for coincurve --- scripts/hook-coincurve.py | 9 +++++++++ scripts/wine_build.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 scripts/hook-coincurve.py diff --git a/scripts/hook-coincurve.py b/scripts/hook-coincurve.py new file mode 100644 index 000000000..ba13eefe1 --- /dev/null +++ b/scripts/hook-coincurve.py @@ -0,0 +1,9 @@ +""" +Hook for coincurve. +""" + +import os.path +from PyInstaller.utils.hooks import get_module_file_attribute + +coincurve_dir = os.path.dirname(get_module_file_attribute('coincurve')) +binaries = [(os.path.join(coincurve_dir, 'libsecp256k1.dll'), 'coincurve')] diff --git a/scripts/wine_build.sh b/scripts/wine_build.sh index 7440f71ca..85578edf3 100755 --- a/scripts/wine_build.sh +++ b/scripts/wine_build.sh @@ -17,5 +17,5 @@ cd torba && pip install -e . && cd .. cd lbry pip install -e . -pyinstaller -F -n lbrynet lbrynet/cli.py +pyinstaller --additional-hooks-dir=scripts/. -F -n lbrynet lbrynet/cli.py wine dist/lbrynet.exe --version