remove DEPRECATED: `archives.replacements`
The replacements will be removed soon from the archives section, as it was never handled correctly when multiple archives were being used, and it also causes confusion in other places.
You can still get the same features by abusing the name_template property.
@@ -28,10 +28,16 @@ builds:
# Archive customization
archives:
-- name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}_{{.Arch}}"
+- name_template: >-
+ {{ .ProjectName }}_
+ {{ .Version }}_
+ {{- if eq .Os "darwin" -}}
+ macOS
+ {{- else -}}
+ {{ .Os }}
+ {{- end }}_
+ {{ .Arch }}
format: tar.gz
- replacements:
- darwin: macOS
format_overrides:
- goos: windows
format: zip
