Browse Source

update README and build scripts

Mokhtar Naamani 5 years ago
parent
commit
b9b68ffa6c
4 changed files with 3 additions and 61 deletions
  1. 3 18
      README.md
  2. 0 1
      build-clean-start.sh
  3. 0 26
      build-runtime.sh
  4. 0 16
      init-wasm.sh

+ 3 - 18
README.md

@@ -13,37 +13,22 @@ Downloads are available in [releases](https://github.com/Joystream/substrate-nod
 ## Building from source
 
 ### Initial setup
-If you want to build from source you will need the Rust [toolchain](https://rustup.rs/), openssl and llvm/libclang.
+If you want to build from source you will need the Rust [toolchain](https://rustup.rs/), openssl and llvm/libclang. You can install the required dependencies with:
 
 ```bash
 git clone https://github.com/Joystream/substrate-node-joystream.git
-```
-
-Initialise the WASM build environment:
-
-```bash
 cd substrate-node-joystream/
-./init-wasm.sh
+./setup.sh
 ```
 
 ### Building
-Clone the joystream runtime into the substrate-node-joystream directory:
 
-```bash
-git clone https://github.com/Joystream/substrate-runtime-joystream.git
-```
-
-Build the WASM runtime library:
-```bash
-./build-runtime.sh
-```
-
-Build the node (native code):
 ```bash
 cargo build --release
 ```
 
 ### Running a public node
+
 Run the node and connect to the public testnet
 ```bash
 cargo run --release

+ 0 - 1
build-clean-start.sh

@@ -1,6 +1,5 @@
 #!/usr/bin/env bash
 
-./build-runtime.sh
 cargo build
 cargo run -- purge-chain --dev
 cargo run -- --dev

+ 0 - 26
build-runtime.sh

@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
-
-export CARGO_INCREMENTAL=0
-
-bold=$(tput bold)
-normal=$(tput sgr0)
-
-# Save current directory.
-pushd . >/dev/null
-
-for SRC in substrate-runtime-joystream/
-do
-  echo "${bold}Building webassembly binary in $SRC...${normal}"
-  cd "$PROJECT_ROOT/$SRC"
-
-  ./build.sh
-
-  cd - >> /dev/null
-done
-
-# Restore initial directory.
-popd >/dev/null

+ 0 - 16
init-wasm.sh

@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-echo "*** Initialising WASM build environment"
-
-if [ -z $CI_PROJECT_NAME ] ; then
-   rustup update nightly
-   rustup update stable
-fi
-
-rustup target add wasm32-unknown-unknown --toolchain nightly
-
-# Install wasm-gc. It's useful for stripping slimming down wasm binaries.
-command -v wasm-gc || \
-	cargo +nightly install --git https://github.com/alexcrichton/wasm-gc --force