diff --git a/.goreleaser.yml b/.goreleaser.yml index 8a91a5ff..87345f72 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,6 +6,7 @@ builds: goos: - darwin - linux + - windows goarch: - amd64 diff --git a/hack/install.sh b/hack/install.sh index 0151e175..0f15e4fc 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -31,6 +31,8 @@ if [ "$(uname)" == "Darwin" ]; then binary_url="https://github.com/hypnoglow/helm-s3/releases/download/v${version}/helm-s3_${version}_darwin_amd64.tar.gz" elif [ "$(uname)" == "Linux" ] ; then binary_url="https://github.com/hypnoglow/helm-s3/releases/download/v${version}/helm-s3_${version}_linux_amd64.tar.gz" +elif [[ "$(uname)" =~ (CYGWIN|MINGW|MSYS_NT).* ]] ; then + binary_url="https://github.com/hypnoglow/helm-s3/releases/download/v${version}/helm-s3_${version}_windows_amd64.tar.gz" fi if [ -z "${binary_url}" ]; then