Browse Source

build.sh: native binaries as last step

Mokhtar Naamani 4 years ago
parent
commit
ddf2e62e37
1 changed files with 17 additions and 17 deletions
  1. 17 17
      build.sh

+ 17 - 17
build.sh

@@ -13,22 +13,6 @@ yarn workspace storage-node build
 # a dev instance, but will show highlight build issues
 yarn workspace pioneer build
 
-# Build cargo crates: native binaries joystream/node, wasm runtime, and chainspec builder.
-while true
-do
-  read -p "Compile joystream node native binary? (y/N): " answer1
-
-  case $answer1 in
-   [yY]* ) yarn cargo-checks
-           yarn cargo-build
-           break;;
-
-   [nN]* ) break;;
-
-   * )     break;;
-  esac
-done
-
 if ! command -v docker-compose &> /dev/null
 then
   echo "docker-compose not found, skipping docker build!"
@@ -52,4 +36,20 @@ else
     * )     break;;
     esac
   done
-fi
+fi
+
+# Build cargo crates: native binaries joystream/node, wasm runtime, and chainspec builder.
+while true
+do
+  read -p "Compile joystream node native binary? (y/N): " answer1
+
+  case $answer1 in
+   [yY]* ) yarn cargo-checks
+           yarn cargo-build
+           break;;
+
+   [nN]* ) break;;
+
+   * )     break;;
+  esac
+done