From ae6401b1cd9ee6082aa1f98f70af0b2015bee8b1 Mon Sep 17 00:00:00 2001 From: Jonathan Seth Mainguy Date: Fri, 11 Aug 2023 08:44:39 -0400 Subject: [PATCH] chore: fixup goreleaser --- .goreleaser.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 396e97a..6c103b4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,26 +17,26 @@ builds: - arm64 archives: -- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - replacements: - darwin: Darwin - linux: Linux - windows: Windows - amd64: x86_64 - format_overrides: - - goos: windows - format: zip + - 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 -}} + format_overrides: + - goos: windows + format: zip nfpms: -- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' +- file_name_template: >- + {{- if eq .Arch "amd64" }}x86_64 homepage: https://github.com/Jmainguy/ghreport description: Check Github for Pull Requests, that are not Drafts, in repos the user cares about. maintainer: Jonathan Seth Mainguy license: GPLv2 vendor: Jmainguy release: 1 - replacements: - amd64: x86_64 overrides: rpm: file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{.Release}}.{{ .Arch }}"