add a pyinstaller hook for coincurve

This commit is contained in:
Victor Shyba 2018-09-22 19:13:03 -03:00 committed by Lex Berezhny
parent 2f4e6911d6
commit 4185a3b9e3
2 changed files with 10 additions and 1 deletions

View file

@ -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')]

View file

@ -17,5 +17,5 @@ cd torba && pip install -e . && cd ..
cd lbry cd lbry
pip install -e . 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 wine dist/lbrynet.exe --version