Version 0.2.0 and build fix.

This commit is contained in:
Stanislav Nikitin 2021-02-19 19:43:52 +05:00
parent abe6734a46
commit fb34d0d53e
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
2 changed files with 7 additions and 3 deletions

View File

@ -1 +1 @@
0.1.1 0.2.0

View File

@ -4,7 +4,11 @@
GO=${GO:=$(which go)} GO=${GO:=$(which go)}
if [ -d .git ]; then
source ./scripts/shell_helpers/get_git_data.sh source ./scripts/shell_helpers/get_git_data.sh
else
source ./scripts/shell_helpers/get_release_data.sh
fi
WHATTOBUILD=$1 WHATTOBUILD=$1
@ -18,4 +22,4 @@ LINKERFLAGS="\
echo "Using $(go version) at ${GO}" echo "Using $(go version) at ${GO}"
cd cmd/${WHATTOBUILD} cd cmd/${WHATTOBUILD}
go build -tags netgo -ldflags "${LINKERFLAGS} -w -extldflags '-static'" -o ../../._bin/${WHATTOBUILD} ${GO} build -tags netgo -ldflags "${LINKERFLAGS} -w -extldflags '-static'" -o ../../._bin/${WHATTOBUILD}