setup.sh 838 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. set -e
  3. # If OS is supported will install:
  4. # - build tools and any other dependencies required for rust and substrate
  5. # - rustup - rust insaller
  6. # - rust compiler and toolchains
  7. # - skips installing substrate and subkey
  8. curl https://getsubstrate.io -sSf | bash -s -- --fast
  9. source ~/.cargo/env
  10. rustup component add rustfmt clippy
  11. # Current version of substrate requires an older version of nightly toolchain
  12. # to successfully compile the WASM runtime. We force install because rustfmt package
  13. # is not available for this nightly version.
  14. rustup install nightly-2020-05-23 --force
  15. rustup target add wasm32-unknown-unknown --toolchain nightly-2020-05-23
  16. # Ensure the stable toolchain is still the default
  17. rustup default stable
  18. # TODO: Install additional tools...
  19. # - b2sum
  20. # - nodejs
  21. # - npm
  22. # - yarn
  23. # .... ?