Skip to content

Commit

Permalink
add script for building middleware binaries locally
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakDev12 committed Jul 26, 2024
1 parent f60616c commit e8c1519
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
27 changes: 27 additions & 0 deletions build_pearl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cd "$(dirname "$0")"

BIN_DIR="electron/bins/"
mkdir -p $BIN_DIR

poetry install

poetry run pyinstaller operate/services/utils/tendermint.py --onefile --distpath $BIN_DIR

poetry run pyinstaller \
--collect-data eth_account \
--collect-all aea \
--collect-all autonomy \
--collect-all operate \
--collect-all aea_ledger_ethereum \
--collect-all aea_ledger_cosmos \
--collect-all aea_ledger_ethereum_flashbots \
--hidden-import aea_ledger_ethereum \
--hidden-import aea_ledger_cosmos \
--hidden-import aea_ledger_ethereum_flashbots \
operate/pearl.py \
--add-binary ${BIN_DIR}/aea_bin_x64:. \
--add-binary ${BIN_DIR}/aea_bin_arm64:. \
--onefile \
--distpath $BIN_DIR \
--name pearl_$(uname -m)

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"dev": "dotenv -e .env -- yarn start",
"start:frontend": "cd frontend && yarn start",
"test:frontend": "cd frontend && yarn test",
"download-binaries": "sh download_binaries.sh"
"download-binaries": "sh download_binaries.sh",
"build:pearl": "sh build_pearl.sh"

},
"version": "0.1.0-rc86"
}

0 comments on commit e8c1519

Please sign in to comment.