Skip to content

Commit

Permalink
Merge pull request #41 from renproject/v3.0.1
Browse files Browse the repository at this point in the history
v3.0.1
  • Loading branch information
vinceau committed Nov 5, 2019
2 parents a3ca7e4 + c3575d1 commit 56fc60e
Show file tree
Hide file tree
Showing 7 changed files with 1,008 additions and 421 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jobs:
cd cmd
go build -o darknode .
mv darknode ../artifacts/darknode_linux_amd64
env GOOS=linux CGO_ENABLED=1 CC=arm-linux-gnueabi-gcc-6 GOARCH=arm go build -o darknode .
mv darknode ../artifacts/darknode_linux_arm
env GOOS=darwin CGO_ENABLED=1 CC=o64-clang GOARCH=amd64 go build -o darknode .
mv darknode ../artifacts/darknode_darwin_amd64
wget https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz
tar xvzf ghr_v0.13.0_linux_amd64.tar.gz
mv ghr_v0.13.0_linux_amd64/ghr ghr
./ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete 3.0.0 ../artifacts/
./ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete 3.0.1 ../artifacts/
workflows:
version: 2.1
Expand Down
7 changes: 5 additions & 2 deletions artifacts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ cputype="$(uname -m)"
# download darknode binary depending on the system and architecture
if [ "$ostype" = 'Linux' -a "$cputype" = 'x86_64' ]; then
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.12/terraform_0.12.12_linux_amd64.zip'
curl -s -L 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_amd64' > ./bin/darknode
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_amd64' > ./bin/darknode
elif [ "$ostype" = 'Linux' -a "$cputype" = 'aarch64' ]; then
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.12/terraform_0.12.12_linux_arm.zip'
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_arm' > ./bin/darknode
elif [ "$ostype" = 'Darwin' -a "$cputype" = 'x86_64' ]; then
TERRAFORM_URL='https://releases.hashicorp.com/terraform/0.12.12/terraform_0.12.12_darwin_amd64.zip'
curl -s -L 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_darwin_amd64' > ./bin/darknode
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_darwin_amd64' > ./bin/darknode
else
echo 'unsupported OS type or architecture'
cd ..
Expand Down
6 changes: 4 additions & 2 deletions artifacts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ fi

# Download the latest binary darknode
if [ "$ostype" = 'Linux' -a "$cputype" = 'x86_64' ]; then
curl -s -L 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_amd64' > ./bin/darknode
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_amd64' > ./bin/darknode
elif [ "$ostype" = 'Linux' -a "$cputype" = 'aarch64' ]; then
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_linux_arm' > ./bin/darknode
elif [ "$ostype" = 'Darwin' -a "$cputype" = 'x86_64' ]; then
curl -s -L 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_darwin_amd64' > ./bin/darknode
curl -sL 'https://www.github.com/renproject/darknode-cli/releases/latest/download/darknode_darwin_amd64' > ./bin/darknode
else
echo 'unsupported OS type or architecture'
exit 1
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
app := cli.NewApp()
app.Name = "Darknode CLI"
app.Usage = "A command-line tool for managing Darknodes."
app.Version = "3.0.0"
app.Version = "3.0.1"

// Fetch latest release and check if our version is bebind.
checkUpdates(app.Version)
Expand Down Expand Up @@ -208,6 +208,6 @@ func checkUpdates(curVer string) {
if versionCurrent.LessThan(versionLatest) {
color.Red("You are running %v", curVer)
color.Red("A new release is available (%v)", release.GetTagName())
color.Red("You can update with `darknode update` command")
color.Red("You can update with `curl https://www.github.com/renproject/darknode-cli/releases/latest/download/update.sh -sSfL | sh` command")
}
}
529 changes: 455 additions & 74 deletions darknode/bindings/dnr.go

Large diffs are not rendered by default.

Loading

0 comments on commit 56fc60e

Please sign in to comment.