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

Commit

Permalink
Add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Apr 10, 2018
1 parent 39f7d34 commit b36602c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gotop
build/
dist/
20 changes: 20 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Build Steps
# 1. update version number in `main.go` and `download.sh`
# 2. commit changes
# 3.
# 4. push changes to GitHub
# 5. update AUR package

builds:
- binary: gotop
goos:
- darwin
- linux
goarch:
- amd64
- 386
ignore:
- goos: darwin
goarch: 386
archive:
format: tgz
27 changes: 0 additions & 27 deletions build.sh

This file was deleted.

7 changes: 4 additions & 3 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
VERSION=1.2.3

download() {
curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop-$VERSION-${1}.tgz > gotop.tgz
tar xf gotop.tgz
rm gotop.tgz
archive=gotop-$VERSION-${1}.tgz
curl -LO https://github.com/cjbassi/gotop/releases/download/$VERSION/$archive
tar xf $archive
rm $archive
}

arch=$(uname -sm)
Expand Down

0 comments on commit b36602c

Please sign in to comment.