From bcab83e77349a4e51a97960750e31f34fd38870c Mon Sep 17 00:00:00 2001 From: Daulet Zhanguzin Date: Fri, 6 Sep 2024 12:25:39 -0700 Subject: [PATCH] fix: release scripts --- scripts/install.sh | 2 +- scripts/release.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 2473239..86152cb 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -euo pipefail -go build -o bin/cmd cmd/main.go +go build -o bin/cmd ./cmd/ diff --git a/scripts/release.sh b/scripts/release.sh index af11284..380f92a 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -29,9 +29,9 @@ for target in "${TARGETS[@]}"; do if [ ! -z "$GIT_TAGS" ]; then GIT_VERSION=$(git describe --tags $GIT_TAGS) - CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT -X main.GitVersion=$GIT_VERSION" -o "bin/$binary_name" -a cmd/main.go + CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT -X main.GitVersion=$GIT_VERSION" -o "bin/$binary_name" -a ./cmd else - CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT" -o "bin/$binary_name" -a cmd/main.go + CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.GitCommit=$GIT_COMMIT" -o "bin/$binary_name" -a ./cmd fi echo "done"