Skip to content

Commit 78794df

Browse files
Fix goreleaser name templates
1 parent 2ab0439 commit 78794df

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.goreleaser.yml

+16-8
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ changelog:
3737
- '^test:'
3838

3939
archives:
40-
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
41-
replacements:
42-
amd64: x86_64
43-
386: i386
40+
- name_template: >-
41+
{{- .ProjectName }}-
42+
{{- .Version }}-
43+
{{- .Os }}-
44+
{{- if eq .Arch "amd64" }}x86_64
45+
{{- else if eq .Arch "386" }}i386
46+
{{- else }}{{- .Arch }}{{ end }}
47+
{{- if .Arm }}v{{- .Arm }}{{ end }}
4448
format_overrides:
4549
- goos: windows
4650
format: zip
@@ -92,10 +96,14 @@ snapcrafts:
9296
# https://snapcraft.io/docs/reference/channels
9397
grade: stable
9498
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.
95-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
96-
replacements:
97-
amd64: x86_64
98-
386: i386
99+
name_template: >-
100+
{{- .ProjectName }}-
101+
{{- .Version }}-
102+
{{- .Os }}-
103+
{{- if eq .Arch "amd64" }}x86_64
104+
{{- else if eq .Arch "386" }}i386
105+
{{- else }}{{- .Arch }}{{ end }}
106+
{{- if .Arm }}v{{- .Arm }}{{ end }}
99107
apps:
100108
exercism:
101109
plugs: ["home", "network", "removable-media","personal-files"]

0 commit comments

Comments
 (0)