From 11dcff615901e984c299e8a570cf938abfe3a8ca Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Thu, 16 Jun 2022 13:47:58 +0900 Subject: [PATCH] feat(goreleaser/goreleaser): windows support --- pkgs/goreleaser/goreleaser/registry.yaml | 9 +++++++-- registry.json | 14 ++++++++++++-- registry.yaml | 9 +++++++-- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/pkgs/goreleaser/goreleaser/registry.yaml b/pkgs/goreleaser/goreleaser/registry.yaml index bfce032e332..b428fdec683 100644 --- a/pkgs/goreleaser/goreleaser/registry.yaml +++ b/pkgs/goreleaser/goreleaser/registry.yaml @@ -5,13 +5,18 @@ packages: description: Deliver Go binaries as fast and easily as possible replacements: amd64: x86_64 - asset: "goreleaser_{{title .OS}}_{{.Arch}}.tar.gz" + asset: "goreleaser_{{title .OS}}_{{.Arch}}.{{.Format}}" + format: tar.gz version_constraint: 'semver(">= 0.182.0")' overrides: - goos: darwin asset: "goreleaser_{{title .OS}}_all.tar.gz" + - goos: windows + format: zip version_overrides: # https://github.com/goreleaser/goreleaser/pull/2572 # macOS Universal binaries - version_constraint: 'semver("< 0.182.0")' - overrides: [] + overrides: + - goos: windows + format: zip diff --git a/registry.json b/registry.json index ab81dfb5ac1..4cea8ea9599 100644 --- a/registry.json +++ b/registry.json @@ -3945,12 +3945,17 @@ "type": "github_release" }, { - "asset": "goreleaser_{{title .OS}}_{{.Arch}}.tar.gz", + "asset": "goreleaser_{{title .OS}}_{{.Arch}}.{{.Format}}", "description": "Deliver Go binaries as fast and easily as possible", + "format": "tar.gz", "overrides": [ { "asset": "goreleaser_{{title .OS}}_all.tar.gz", "goos": "darwin" + }, + { + "format": "zip", + "goos": "windows" } ], "replacements": { @@ -3962,7 +3967,12 @@ "version_constraint": "semver(\"\u003e= 0.182.0\")", "version_overrides": [ { - "overrides": [], + "overrides": [ + { + "format": "zip", + "goos": "windows" + } + ], "version_constraint": "semver(\"\u003c 0.182.0\")" } ] diff --git a/registry.yaml b/registry.yaml index 73553fec491..f728d9d1a4c 100644 --- a/registry.yaml +++ b/registry.yaml @@ -2626,16 +2626,21 @@ packages: description: Deliver Go binaries as fast and easily as possible replacements: amd64: x86_64 - asset: "goreleaser_{{title .OS}}_{{.Arch}}.tar.gz" + asset: "goreleaser_{{title .OS}}_{{.Arch}}.{{.Format}}" + format: tar.gz version_constraint: 'semver(">= 0.182.0")' overrides: - goos: darwin asset: "goreleaser_{{title .OS}}_all.tar.gz" + - goos: windows + format: zip version_overrides: # https://github.com/goreleaser/goreleaser/pull/2572 # macOS Universal binaries - version_constraint: 'semver("< 0.182.0")' - overrides: [] + overrides: + - goos: windows + format: zip - type: github_release repo_owner: goreleaser repo_name: nfpm