Skip to content

Commit

Permalink
fix: release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
daulet committed Sep 6, 2024
1 parent fedffd3 commit bcab83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bcab83e

Please sign in to comment.