Przeglądaj źródła

setup.sh - install packages as first step

Mokhtar Naamani 4 lat temu
rodzic
commit
c747004cae
1 zmienionych plików z 8 dodań i 8 usunięć
  1. 8 8
      setup.sh

+ 8 - 8
setup.sh

@@ -2,6 +2,14 @@
 
 set -e
 
+if [[ "$OSTYPE" == "linux-gnu" ]]; then
+    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
+    brew install b2sum gnu-tar jq curl
+    echo "It is recommended to setup Docker desktop from: https://www.docker.com/products/docker-desktop"
+fi
+
 # If OS is supported will install build tools for rust and substrate.
 # Skips installing substrate itself and subkey
 curl https://getsubstrate.io -sSf | bash -s -- --fast
@@ -23,14 +31,6 @@ rustup target add wasm32-unknown-unknown --toolchain nightly-2020-05-23
 rustup install 1.46.0
 rustup default 1.46.0
 
-if [[ "$OSTYPE" == "linux-gnu" ]]; then
-    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
-    brew install b2sum gnu-tar jq curl
-    echo "It is recommended to setup Docker desktop from: https://www.docker.com/products/docker-desktop"
-fi
-
 # Volta nodejs, npm, yarn tools manager
 curl https://get.volta.sh | bash