12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #!/usr/bin/env bash
- set -e
- if [[ "$OSTYPE" == "linux-gnu" ]]; then
-
- sudo apt-get update
- sudo apt-get install -y coreutils clang jq curl gcc xz-utils sudo pkg-config unzip clang libc6-dev-i386 make libssl-dev python
-
- sudo apt-get install -y docker.io docker-compose containerd runc
- elif [[ "$OSTYPE" == "darwin"* ]]; then
-
- if ! which brew >/dev/null 2>&1; then
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- fi
-
- brew update
- brew install b2sum gnu-tar jq curl
- echo "It is recommended to setup Docker desktop from: https://www.docker.com/products/docker-desktop"
- fi
- curl https://getsubstrate.io -sSf | bash -s -- --fast
- source ~/.cargo/env
- rustup component add rustfmt clippy
- rustup install nightly-2020-05-23 --force
- rustup target add wasm32-unknown-unknown --toolchain nightly-2020-05-23
- rustup install 1.46.0
- rustup default 1.46.0
- curl https://get.volta.sh | bash
- source source ~/.bash_profile || ~/.profile || source ~/.bashrc || :
- volta install node@12
- volta install yarn
- volta install npx
- echo "Starting new terminal/shell session to make newly installed tools available."
- exec bash -l
|