From fb34d0d53ea5bdedd96c19849db95edafa541006 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Fri, 19 Feb 2021 19:43:52 +0500 Subject: [PATCH] Version 0.2.0 and build fix. --- VERSION | 2 +- scripts/build.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 17e51c3..0ea3a94 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.1 +0.2.0 diff --git a/scripts/build.sh b/scripts/build.sh index 683c8e6..0799b7a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -4,7 +4,11 @@ GO=${GO:=$(which go)} -source ./scripts/shell_helpers/get_git_data.sh +if [ -d .git ]; then + source ./scripts/shell_helpers/get_git_data.sh +else + source ./scripts/shell_helpers/get_release_data.sh +fi WHATTOBUILD=$1 @@ -18,4 +22,4 @@ LINKERFLAGS="\ echo "Using $(go version) at ${GO}" 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}