Skip to content

Commit

Permalink
exe file ending should be added for windows builds (#372) (#376)
Browse files Browse the repository at this point in the history
(cherry picked from commit efbd79d)
  • Loading branch information
petersutter authored Jan 23, 2024
1 parent 2bf0122 commit 9b120e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ fi

out_file="${BINARY_PATH}/${GOOS}-${GOARCH}/gardenctl_v2_${GOOS}_${GOARCH}"

if [[ "${GOOS}" == "windows" ]]; then
out_file="${out_file}.exe"
fi

echo "building for ${GOOS}-${GOARCH}: ${out_file}"
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GO111MODULE=on go build \
-ldflags "${LD_FLAGS}" \
Expand Down

0 comments on commit 9b120e6

Please sign in to comment.