Skip to content

Commit

Permalink
Merge pull request #320 from valory-xyz/poetry-win-test
Browse files Browse the repository at this point in the history
Poetry win test
  • Loading branch information
truemiller authored Sep 4, 2024
2 parents de4b0d9 + 4a0d4d7 commit 5745a56
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 161 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: '1.4.0'
version: '1.8.3'
virtualenvs-create: true
virtualenvs-in-project: false
virtualenvs-path: ~/my-custom-path
Expand Down
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,26 @@ endef
poetry install && poetry run pyinstaller --collect-data eth_account --collect-all aea --collect-all coincurve --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 dist/aea_win.exe:. --add-binary dist/tendermint_win.exe:. --onefile --name pearl_win


./electron/bins/:
mkdir -p ./electron/bins/

./electron/bins/tendermint.exe: ./electron/bins/
curl -L https://github.com/tendermint/tendermint/releases/download/v0.34.19/tendermint_0.34.19_windows_amd64.tar.gz -o tendermint.tar.gz
tar -xvf tendermint.tar.gz tendermint.exe
cp ./tendermint.exe ./electron/bins/tendermint.exe

.PHONY: build
build: ./dist/pearl_win.exe
build: ./dist/pearl_win.exe ./electron/bins/tendermint.exe
$(call setup_env, prod)
echo ${DEV_RPC}
mkdir -p ./electron/bins
cp -f dist/pearl_win.exe ./electron/bins/pearl_win.exe
echo ${NODE_ENV}
NODE_ENV=${NODE_ENV} DEV_RPC=${DEV_RPC} FORK_URL=${FORK_URL} yarn build:frontend
NODE_ENV=${NODE_ENV} DEV_RPC=${DEV_RPC} FORK_URL=${FORK_URL} GH_TOKEN=${GH_TOKEN} node build-win.js




.PHONY: build-tenderly
build-tenderly: ./dist/pearl_win.exe
$(call setup_env, dev-tenderly)
Expand Down
Loading

0 comments on commit 5745a56

Please sign in to comment.