forked from hummusonrails/substrate-contracts-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add echo statements for each step in install script
- Loading branch information
1 parent
b4d9203
commit d0428a2
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
#!/bin/sh | ||
|
||
echo "Installing Rust and WASM toolchain..." | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
rustup default stable | ||
rustup update | ||
rustup update nightly | ||
rustup target add wasm32-unknown-unknown --toolchain nightly | ||
|
||
echo "Installing protoc..." | ||
sudo apt update | ||
sudo apt install -y unzip | ||
PROTOC_VERSION=$(curl -s "https://api.github.com/repos/protocolbuffers/protobuf/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') | ||
curl -Lo protoc.zip "https://github.com/protocolbuffers/protobuf/releases/latest/download/protoc-${PROTOC_VERSION}-linux-x86_64.zip" | ||
sudo unzip -q protoc.zip bin/protoc -d /usr/local | ||
sudo chmod a+x /usr/local/bin/protoc | ||
rm -rf protoc.zip | ||
|
||
echo "Building Substrate Node Template..." | ||
cargo build --release --locked | ||
|
||
echo "Installing cargo-contract CLI tool..." | ||
cargo install --force --locked cargo-contract --version 2.0.0-rc |