Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download XBR contracts as part of build #505

Merged
merged 4 commits into from
Apr 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,16 @@ requirements:
sudo apt install -y npm nodejs default-jre
node -v

contracts:
rm -f /tmp/xbr-protocol-latest.zip
curl -s https://xbr.network/lib/abi/xbr-protocol-latest.zip -o /tmp/xbr-protocol-latest.zip
rm -rf packages/autobahn-xbr/contracts
mkdir packages/autobahn-xbr/contracts
unzip /tmp/xbr-protocol-latest.zip -d packages/autobahn-xbr/contracts

build: build_browser build_npm

build_browser: build_browser_ab build_browser_xbr
build_browser: contracts build_browser_ab build_browser_xbr

build_browser_ab:
-rm -rf ./packages/autobahn/node_modules/websocket
Expand Down Expand Up @@ -106,7 +113,7 @@ publish_browser:
# cp ./packages/autobahn/build/* ../crossbarfx/test/_shared_web/autobahn/
@echo "Now commit and push these repos: autobahn-js-browser, crossbar-examples"

publish_npm: build_npm
publish_npm: contracts build_npm
cd packages/autobahn; npm publish
cd packages/autobahn-xbr; npm publish

Expand Down
Loading