From 6f7cd04213a9d4db7b6b68244d273f84329b43f3 Mon Sep 17 00:00:00 2001 From: Gaetano Esposito Date: Tue, 8 Sep 2026 16:08:34 +0200 Subject: [PATCH] fix(release): publish Windows archives as zip GoReleaser's default archive format is tar.gz on every platform, so the Windows release assets ship as .tar.gz. winget cannot consume those: its InstallerType enum has a zip member and no tar/gzip one, so no valid winget manifest can point at the current Windows assets. The Scoop manifest in scoop/ has the same problem, and .zip is in any case the native archive format on Windows. Override the format for goos: windows only; every other platform keeps tar.gz. Archive contents are unchanged. Refs #161 --- .goreleaser.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index aab61e9..fc2e844 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -61,6 +61,12 @@ archives: {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} + # winget and Scoop can only consume .zip archives, and .zip is the native + # archive format on Windows; tar.gz stays the default everywhere else. + format_overrides: + - goos: windows + formats: [ zip ] + # Files to include in archive (essential docs only) # Full documentation available at https://reyamira.github.io/pass-cli/ files: