Skip to content

Commit

Permalink
Fix Travis build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lnsp committed Jan 21, 2020
1 parent 466823d commit 8676e63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build-dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ set +x;

function makedist {
printf "Building %-14s ..." "$1-$2"

GOOS=$1 GOARCH=$2 go build -o koala/koala -ldflags "-X main.version=$3" ./api

basedir=$(pwd)
cd $basedir/api
GO111MODULE=on GOOS=$1 GOARCH=$2 go build -o $basedir/koala/koala -ldflags "-X main.version=$3"
cd $basedir
tar czf artifacts/koala-$3-$1-$2.tar.gz koala/
rm koala/koala
printf " done.\n"
Expand Down

0 comments on commit 8676e63

Please sign in to comment.