Last active
May 1, 2020 21:58
-
-
Save chappjc/6cfc52a5b700a43c03d533172f91aa57 to your computer and use it in GitHub Desktop.
Decred build script using dep for both dcrd and dcrwallet
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
#!/usr/bin/env bash | |
# Build dcrd and dcrwallet from git. | |
# It will clone master initially; subsequently it will pull any checked out branch. | |
# chappjc | |
go version | |
GO111MODULE=on go get -v decred.org/dcrctl@master | |
# Inital setup for dcrd build with dep requries manual clone | |
if [ ! -d $HOME/github/decred/dcrd/.git ]; then | |
echo "Performing initial clone of dcrd" | |
git clone https://github.com/decred/dcrd $HOME/github/decred/dcrd | |
fi | |
cd $HOME/github/decred/dcrd | |
git checkout go.mod && git checkout go.sum | |
git pull --ff-only | |
go install -v . ./cmd/... | |
# Inital setup for dcrwallet build with dep requries manual clone | |
if [ ! -d $HOME/github/decred/dcrwallet/.git ]; then | |
echo "Performing initial clone of dcrwallet" | |
git clone https://github.com/decred/dcrwallet $HOME/github/decred/dcrwallet | |
fi | |
cd $HOME/github/decred/dcrwallet | |
git checkout go.mod && git checkout go.sum | |
git pull --ff-only | |
go install -v | |
echo Once you have shut down running dcr programs, you may install with something like: | |
echo "sudo install -m 754 -o root -g decred ~/go/bin/dcr* /opt/decred/bin/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment