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