From 3d2e0f24be03ff3448d3732ba584f0bd4bfbea80 Mon Sep 17 00:00:00 2001 From: raul Date: Sun, 31 Mar 2024 11:02:27 +0200 Subject: [PATCH] Fix goreleaser packaging Win packages in tar.gz --- .goreleaser.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a1d38e1..8e02d12 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -28,21 +28,21 @@ builds: goarch: - amd64 -# archives: -# - format: tar.gz -# # this name template makes the OS and Arch compatible with the results of `uname`. -# name_template: >- -# {{ .ProjectName }}_ -# {{- title .Os }}_ -# {{- if eq .Arch "amd64" }}x86_64 -# {{- else if eq .Arch "386" }}i386 -# {{- else }}{{ .Arch }}{{ end }} -# {{- if .Arm }}v{{ .Arm }}{{ end }} -# # use zip for windows archives -# format_overrides: -# - goos: windows -# format: zip -# +archives: + - format: tar.gz + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + format: zip + changelog: sort: asc filters: