@@ -17,28 +17,13 @@ builds:
1717 - amd64
1818
1919archives :
20- -
21- # Archive name template.
22- # Defaults:
23- # - if format is `tar.gz`, `gz` or `zip`:
24- # - `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
25- # - if format is `binary`:
26- # - `{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
27- name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
28-
29- # Replacements for GOOS and GOARCH in the archive name.
30- # Keys should be valid GOOSs or GOARCHs.
31- # Values are the respective replacements.
32- # Default is empty.
33- replacements :
34- amd64 : 64-bit
35-
36- # Set to true, if you want all files in the archive to be in a single directory.
37- # If set to true and you extract the archive 'goreleaser_Linux_arm64.tar.gz',
38- # you get a folder 'goreleaser_Linux_arm64'.
39- # If set to false, all files are extracted separately.
40- # You can also set it to a custom folder name (templating is supported).
41- # Default is false.
20+ - name_template : >-
21+ {{ .ProjectName }}_
22+ {{ .Version }}_
23+ {{- title .Os }}_
24+ {{- if eq .Arch "amd64" }}x86_64
25+ {{- else if eq .Arch "386" }}i386
26+ {{- else }}{{ .Arch }}{{ end }}
4227 wrap_in_directory: true
4328
4429 # Archive format. Valid options are `tar.gz`, `gz`, `zip` and `binary`.
@@ -62,16 +47,13 @@ archives:
6247
6348nfpms :
6449 -
65- # You can change the name of the package.
66- # Default: `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
67- file_name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
68-
69- # Replacements for GOOS and GOARCH in the package name.
70- # Keys should be valid GOOSs or GOARCHs.
71- # Values are the respective replacements.
72- # Default is empty.
73- replacements :
74- amd64 : 64-bit
50+ file_name_template : >-
51+ {{ .ProjectName }}_
52+ {{ .Version }}_
53+ {{- title .Os }}_
54+ {{- if eq .Arch "amd64" }}x86_64
55+ {{- else if eq .Arch "386" }}i386
56+ {{- else }}{{ .Arch }}{{ end }}
7557
7658 # Your app's vendor.
7759 # Default is empty.
0 commit comments