From a60682938b17fd9b04712bc8a00c0ea8e1ea7614 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Mon, 22 Apr 2019 18:25:08 -0500 Subject: [PATCH] Build tar release instead of binary Resolves #41 --- ci/build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/build.sh b/ci/build.sh index ce204e6..ac2b405 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -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