Skip to content

Commit

Permalink
Use src.PYINSTALLER_SPEC_PATH in build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkiss authored and hoffmang9 committed Apr 3, 2021
1 parent 7a970b8 commit 986b103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build_scripts/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion build_scripts/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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\"
Expand Down

0 comments on commit 986b103

Please sign in to comment.