Fix building issues
* can't use goreleaser with darwin builds so we have to manual build them ourselves
This commit is contained in:
parent
ba1ce86eff
commit
e3e0160bae
|
@ -1,7 +1,6 @@
|
||||||
builds:
|
builds:
|
||||||
- binary: gotop
|
- binary: gotop
|
||||||
goos:
|
goos:
|
||||||
- darwin
|
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
|
@ -21,9 +20,3 @@ archive:
|
||||||
format: tgz
|
format: tgz
|
||||||
files:
|
files:
|
||||||
- none*
|
- 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"
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
xgo --targets="darwin/386,darwin/amd64" $PWD
|
version=$(go run main.go -v)
|
||||||
mv gotop-darwin-10.6-386 dist/darwin_386/gotop
|
|
||||||
mv gotop-darwin-10.6-amd64 dist/darwin_amd64/gotop
|
xgo --targets="darwin/386,darwin/amd64" .
|
||||||
|
|
||||||
|
mv gotop-darwin-10.6-386 gotop
|
||||||
|
tar czf gotop_${version}_darwin_386.tgz gotop
|
||||||
|
rm -f gotop
|
||||||
|
|
||||||
|
mv gotop-darwin-10.6-amd64 gotop
|
||||||
|
tar czf gotop_${version}_darwin_amd64.tgz gotop
|
||||||
|
rm -f gotop
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
need to have goreleaser, xgo, and dockerd installed
|
need to have goreleaser, xgo, and dockerd installed
|
||||||
|
|
||||||
make sure gotop builds and runs
|
make sure gotop builds and runs
|
||||||
|
update version number in main.go
|
||||||
|
add, commit, and push change
|
||||||
tag commit with version number
|
tag commit with version number
|
||||||
export GitHub token in shell
|
export GitHub token in shell
|
||||||
make sure dockerd is running
|
make sure dockerd is running
|
||||||
run `goreleaser --rm-dist -f build/.goreleaser.yml`
|
run `goreleaser --rm-dist -f build/.goreleaser.yml`
|
||||||
|
update GitHub release with Darwin builds
|
||||||
|
update homebrew-gotop
|
||||||
update AUR package
|
update AUR package
|
||||||
|
|
Loading…
Reference in New Issue
Block a user