瀏覽代碼

build.sh: native binaries as last step

Mokhtar Naamani 4 年之前
父節點
當前提交
ddf2e62e37
共有 1 個文件被更改,包括 17 次插入17 次删除
  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