improved packaging

- use version in archive name
- "macOS" instead of "Darwin"
- include example config in archives
- use subdir in archives
This commit is contained in:
Philipp Wolfer 2023-11-28 10:01:35 +01:00
parent d96df4367d
commit cde9b28c28
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
5 changed files with 17 additions and 5 deletions

View file

@ -31,12 +31,14 @@ archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{ .ProjectName }}-{{ .Version }}_
{{- if eq .Os "darwin" }}macos
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
wrap_in_directory: true
# use zip for windows archives
format_overrides:
- goos: windows
@ -44,6 +46,10 @@ archives:
files:
- COPYING
- README.md
- config.example.toml
release:
disable: true
# changelog:
# sort: asc