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

Build tar release instead of binary #43

Merged
merged 1 commit into from
Apr 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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