From 78794df8be189db8733a1a7c1daad33eda2ac74b Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 1 Aug 2023 11:13:23 +0200 Subject: [PATCH] Fix goreleaser name templates --- .goreleaser.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index cb55b79f4..c2f9886af 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -37,10 +37,14 @@ changelog: - '^test:' archives: - - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" - replacements: - amd64: x86_64 - 386: i386 + - name_template: >- + {{- .ProjectName }}- + {{- .Version }}- + {{- .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 @@ -92,10 +96,14 @@ snapcrafts: # https://snapcraft.io/docs/reference/channels grade: stable description: Exercism is an online platform designed to help you improve your coding skills through practice and mentorship. Exercism provides you with thousands of exercises spread across numerous language tracks. Each one is a fun and interesting challenge designed to teach you a little more about the features of a language. - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" - replacements: - amd64: x86_64 - 386: i386 + name_template: >- + {{- .ProjectName }}- + {{- .Version }}- + {{- .Os }}- + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{- .Arch }}{{ end }} + {{- if .Arm }}v{{- .Arm }}{{ end }} apps: exercism: plugs: ["home", "network", "removable-media","personal-files"]