From acd29e643e865e5b469cd2f866d4a6d32c3266a3 Mon Sep 17 00:00:00 2001 From: Becca Petrin Date: Mon, 13 Jul 2020 13:40:05 -0700 Subject: [PATCH] Update build script --- authenticator/scripts/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/authenticator/scripts/build.sh b/authenticator/scripts/build.sh index ad2d6775..743f80cb 100755 --- a/authenticator/scripts/build.sh +++ b/authenticator/scripts/build.sh @@ -14,14 +14,14 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" cd "$DIR" # Set build tags -BUILD_TAGS="${BUILD_TAGS:-"approzium"}" +BUILD_TAGS="${BUILD_TAGS:-"authenticator"}" # Get the git commit GIT_COMMIT="$(git rev-parse HEAD)" GIT_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)" # If its dev mode, only build for ourself -if [ "${APPROZIUM_DEV_BUILD}x" != "x" ] && [ "${XC_OSARCH}x" == "x" ]; then +if [ "${AUTHENTICATOR_DEV_BUILD}x" != "x" ] && [ "${XC_OSARCH}x" == "x" ]; then XC_OS=$(${GO_CMD} env GOOS) XC_ARCH=$(${GO_CMD} env GOARCH) XC_OSARCH=$(${GO_CMD} env GOOS)/$(${GO_CMD} env GOARCH) @@ -55,7 +55,7 @@ gox \ -osarch="${XC_OSARCH}" \ -gcflags "${GCFLAGS}" \ -ldflags "${LD_FLAGS}-X github.com/cyralinc/approzium/sdk/version.GitCommit='${GIT_COMMIT}${GIT_DIRTY}'" \ - -output "pkg/{{.OS}}_{{.Arch}}/approzium" \ + -output "pkg/{{.OS}}_{{.Arch}}/authenticator" \ ${GOX_PARALLEL_BUILDS+-parallel="${GOX_PARALLEL_BUILDS}"} \ -tags="${BUILD_TAGS}" \ -gocmd="${GO_CMD}" \ @@ -73,7 +73,7 @@ for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do cp ${F} ${MAIN_GOPATH}/bin/ done -if [ "${APPROZIUM_DEV_BUILD}x" = "x" ]; then +if [ "${AUTHENTICATOR_DEV_BUILD}x" = "x" ]; then # Zip and copy to the dist dir echo "==> Packaging..." for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do