github.com/evdatsion/aphelion-dpos-bft@v0.32.1/scripts/install/install_tendermint_arm.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  REPO=github.com/evdatsion/aphelion-dpos-bft
     4  
     5  # change this to a specific release or branch
     6  BRANCH=master
     7  
     8  GO_VERSION=1.12
     9  
    10  sudo apt-get update -y
    11  
    12  # get and unpack golang
    13  curl -O https://storage.googleapis.com/golang/go$GO_VERSION.linux-armv6l.tar.gz
    14  tar -xvf go$GO_VERSION.linux-armv6l.tar.gz
    15  
    16  # move go folder and add go binary to path
    17  sudo mv go /usr/local
    18  echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
    19  
    20  # create the go directory, set GOPATH, and put it on PATH
    21  mkdir go
    22  echo "export GOPATH=$HOME/go" >> ~/.profile
    23  echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile
    24  source ~/.profile
    25  
    26  # get the code and move into repo
    27  go get $REPO
    28  cd "$GOPATH/src/$REPO"
    29  
    30  # build & install
    31  git checkout $BRANCH
    32  # XXX: uncomment if branch isn't master
    33  # git fetch origin $BRANCH
    34  make get_tools
    35  make install
    36  
    37  # the binary is located in $GOPATH/bin
    38  # run `source ~/.profile` or reset your terminal
    39  # to persist the changes