forked from LBRYCommunity/lbry-sdk
add a pyinstaller hook for coincurve
This commit is contained in:
parent
2f4e6911d6
commit
4185a3b9e3
2 changed files with 10 additions and 1 deletions
9
scripts/hook-coincurve.py
Normal file
9
scripts/hook-coincurve.py
Normal 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')]
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue