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

Commit

Permalink
Fix building issues
Browse files Browse the repository at this point in the history
* can't use goreleaser with darwin builds so we have to manual build
them ourselves
  • Loading branch information
cjbassi committed May 24, 2018
1 parent ba1ce86 commit 2b485e0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
7 changes: 0 additions & 7 deletions build/.goreleaser.yml
@@ -1,7 +1,6 @@
builds:
- binary: gotop
goos:
- darwin
- linux
goarch:
- amd64
Expand All @@ -21,9 +20,3 @@ archive:
format: tgz
files:
- none*
brew:
github:
owner: cjbassi
name: homebrew-gotop
description: "A terminal based graphical activity monitor inspired by gtop and vtop"
homepage: "https://github.com/cjbassi/gotop"
8 changes: 5 additions & 3 deletions build/build-darwin-cgo.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

xgo --targets="darwin/386,darwin/amd64" $PWD
mv gotop-darwin-10.6-386 dist/darwin_386/gotop
mv gotop-darwin-10.6-amd64 dist/darwin_amd64/gotop
version=$(go run main.go -v)

xgo --targets="darwin/386,darwin/amd64" .
tar czf gotop_$version_darwin_386.tgz gotop-darwin-10.6-386
tar czf gotop_$version_darwin_amd64.tgz gotop-darwin-10.6-amd64
4 changes: 4 additions & 0 deletions build/build_steps.txt
@@ -1,8 +1,12 @@
need to have goreleaser, xgo, and dockerd installed

make sure gotop builds and runs
update version number in main.go
add, commit, and push change
tag commit with version number
export GitHub token in shell
make sure dockerd is running
run `goreleaser --rm-dist -f build/.goreleaser.yml`
update GitHub release with Darwin builds
update homebrew-gotop
update AUR package
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/docopt/docopt-go"
)

var version = "updated by goreleaser"
var version = "1.4.0"

var (
termResized = make(chan bool, 1)
Expand Down

0 comments on commit 2b485e0

Please sign in to comment.