Created
December 2, 2017 22:49
-
-
Save bvcelari/754b62a3079f05c47e51753409f5b26e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Rust Version | |
if [ "$0" != "" ]; then | |
RUST_VERSION=$0 | |
else | |
RUST_VERSION="stable" | |
fi | |
#Parity Version | |
if [ "$1" != "" ]; then | |
PARITY_VERSION=$1 | |
#I am gonna skip wrong parameters, etc... | |
else | |
PARITY_VERSION="stable" | |
fi | |
RUST_VERSION="stable" | |
PARITY_VERSION="stable" | |
apt-get update | |
apt-get install -y git sudo curl | |
if [ $RUST_VERSION == "stable" ] | |
curl https://sh.rustup.rs > /tmp/rustup.sh | |
bash -x /tmp/rustup.sh -y | |
else | |
curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=${RUST_VERSION} | |
fi | |
cd /opt/ | |
git clone https://github.com/paritytech/parity | |
cd parity | |
git checkout ${PARITY_VERSION} | |
cargo build --release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment