fix: update goreleaser config to latest format

This commit is contained in:
dacrab 2024-12-27 12:42:19 +02:00
parent dae6dbcdaa
commit 4dc0034165

View File

@ -25,22 +25,6 @@ builds:
- -trimpath - -trimpath
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: '{{ .CommitTimestamp }}'
# Build matrix
matrix:
# Special builds for macOS
- goos: [darwin]
goarch: [amd64]
tags: ["intel"]
- goos: [darwin]
goarch: [arm64]
tags: ["apple_silicon"]
# Windows builds
- goos: [windows]
goarch: [amd64, "386"]
# Linux builds
- goos: [linux]
goarch: [amd64, arm64, "386"]
archives: archives:
- format: tar.gz - format: tar.gz
format_overrides: format_overrides:
@ -49,20 +33,16 @@ archives:
name_template: >- name_template: >-
{{ .ProjectName }}_ {{ .ProjectName }}_
{{- .Version }}_ {{- .Version }}_
{{- .Os }}_ {{- title .Os }}_
{{- .Arch }} {{- if eq .Arch "amd64" }}x64{{ end }}
{{- with .Tags }}_{{ . }}{{ end }} {{- if eq .Arch "386" }}x86{{ end }}
{{- if eq .Arch "arm64" }}arm64{{ end }}
{{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }}
{{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }}
files: files:
- README.md - README.md
- LICENSE - LICENSE
- scripts/* # Include installation scripts - scripts/* # Include installation scripts
replacements:
darwin: macOS
linux: Linux
windows: Windows
386: x86
amd64: x64
arm64: arm64
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'