Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Commit

Permalink
Build tar release instead of binary
Browse files Browse the repository at this point in the history
Resolves #41
  • Loading branch information
ammario committed Apr 22, 2019
1 parent ddb1136 commit a606829
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
export GOARCH=amd64

build(){
go build -o bin/sshcode-$GOOS-$GOARCH
tmpdir=$(mktemp -d)
go build -o $tmpdir/sshcode

pushd $tmpdir
tarname=sshcode-$GOOS-$GOARCH.tar
tar -cf $tarname sshcode
popd
cp $tmpdir/$tarname bin
rm -rf $tmpdir
}

GOOS=darwin build
Expand Down

0 comments on commit a606829

Please sign in to comment.