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

Commit

Permalink
Move gotop.go to main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Apr 1, 2018
1 parent 3cc1e4e commit 1a61eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@

# more info at https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04

VERSION=$(go run gotop.go -v)
VERSION=$(go run main.go -v)

mkdir build
mkdir -p build
cd build

env GOOS=darwin GOARCH=amd64 go build ../
env GOOS=darwin GOARCH=amd64 go build -o gotop ../
tar czf gotop-$VERSION-darwin_amd64.tgz gotop
rm gotop

env GOOS=linux GOARCH=386 go build ../
env GOOS=linux GOARCH=386 go build -o gotop ../
tar czf gotop-$VERSION-linux_386.tgz gotop
rm gotop

env GOOS=linux GOARCH=amd64 go build ../
env GOOS=linux GOARCH=amd64 go build -o gotop ../
tar czf gotop-$VERSION-linux_amd64.tgz gotop
rm gotop
File renamed without changes.

0 comments on commit 1a61eb2

Please sign in to comment.