123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #!/usr/bin/env bash
- set -e
- if [[ "$OSTYPE" == "linux-gnu" ]]; then
-
- sudo apt-get update
- sudo apt-get install -y coreutils clang llvm jq curl gcc xz-utils sudo pkg-config unzip libc6-dev 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 coreutils 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 install nightly-2021-03-24
- rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-24
- rustup default nightly-2021-03-24
- rustup component add rustfmt clippy
- curl https://get.volta.sh | bash
- source ~/.bash_profile || source ~/.profile || source ~/.bashrc || :
- volta install node@12
- volta install yarn
- volta install npx
- echo "You may need to open a new terminal/shell session to make newly installed tools available."
|