Use src.PYINSTALLER_SPEC_PATH in build scripts.

This commit is contained in:
Richard Kiss 2021-03-23 16:05:42 -07:00 committed by Gene Hoffman
parent 7a970b8fe7
commit 986b103aba
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,8 @@ mkdir dist
echo "Create executables with pyinstaller"
pip install pyinstaller==4.2
sudo pyinstaller --log-level=INFO daemon.spec
SPEC_FILE=$(python -c 'import src; print(src.PYINSTALLER_SPEC_PATH)')
pyinstaller --log-level=INFO "$SPEC_FILE"
cp -r dist/daemon ../chia-blockchain-gui
cd .. || exit
cd chia-blockchain-gui || exit

View File

@ -66,7 +66,8 @@ pip install --no-index --find-links=.\win_build\ chia-blockchain
Write-Output " ---"
Write-Output "Use pyinstaller to create chia .exe's"
Write-Output " ---"
pyinstaller --log-level INFO daemon.spec
$SPEC_FILE = (python -c 'import src; print(src.PYINSTALLER_SPEC_PATH)') -join "`n"
pyinstaller --log-level INFO $SPEC_FILE
Write-Output " ---"
Write-Output "Copy chia executables to chia-blockchain-gui\"