Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Update download.sh and rename builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Apr 13, 2018
1 parent 6f26890 commit 74c1095
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ builds:
- 6
- 7
archive:
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
replacements:
arm64: arm8
format: tgz
13 changes: 9 additions & 4 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ download() {

arch=$(uname -sm)
case "$arch" in
Linux\ *64) download linux_amd64 ;;
Linux\ *86) download linux_386 ;;
Darwin\ *64) download darwin_amd64 ;;
Darwin\ *86) download darwin_386 ;;
Darwin\ *64) download darwin_amd64 ;;
Darwin\ *86) download darwin_386 ;;
Linux\ *64) download linux_amd64 ;;
Linux\ *86) download linux_386 ;;
Linux\ armv5*) download linux_arm5 ;;
Linux\ armv6*) download linux_arm6 ;;
Linux\ armv7*) download linux_arm7 ;;
Linux\ armv8*) download linux_arm8 ;;
Linux\ aarch64*) download linux_arm8 ;;
*)
echo "No binary found for your system"
exit 1
Expand Down

0 comments on commit 74c1095

Please sign in to comment.