Skip to content

Commit

Permalink
Add new Goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorunic committed Jul 25, 2024
1 parent c1649b7 commit 7923a5d
Showing 1 changed file with 35 additions and 13 deletions.
48 changes: 35 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
before:
hooks:
- go mod tidy
builds:
- flags:
- -trimpath
Expand All @@ -24,27 +27,46 @@ builds:
goarch: arm
universal_binaries:
- replace: true
changelog:
sort: asc
archives:
- replacements:
linux: Linux
darwin: Darwin
windows: Windows
freebsd: FreeBSD
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_
{{- title .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
files:
- README.md
- LICENSE
- src: dist/CHANGELOG.md
dst: ""
strip_parent: true
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- package_name: dnstrace
vendor: Dinko Korunic
homepage: https://github.com/dkorunic/dnstrace
maintainer: Dinko Korunic <[email protected]>
description: DNS query tracing/analysis tool written in Go
license: MIT
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
bindir: /usr/bin
section: net
priority: optional
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package

0 comments on commit 7923a5d

Please sign in to comment.