mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-28 06:57:56 +02:00
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:
parent
d96df4367d
commit
cde9b28c28
5 changed files with 17 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue