Skip to content

Commit

Permalink
Compress binaries (original size ~100Mb, after compression: ~25Mb)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Ferencz-Szabo committed Nov 29, 2019
1 parent d175812 commit bc96763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ for arch in ${ALL_GOARCH}; do
file="bin/${NAME}-${VERSION}.${platform}.${arch}"
echo "Building ${file}"
CGO_ENABLED=0 GOOS=${platform} GOARCH=${arch} go build -ldflags="-s -w" -o ${file} ./cmd/${NAME}
tar czf "${file}.tgz" "${file}"
rm "${file}"
done
done

Expand Down

0 comments on commit bc96763

Please sign in to comment.