upd goreleaser config

This commit is contained in:
onyx-and-iris 2026-02-07 04:38:44 +00:00
parent 5aa833e2ca
commit bc41de5668

View File

@ -40,10 +40,28 @@ builds:
- amd64 - amd64
archives: archives:
- formats: ['tar.gz'] - id: 'x32-cli-archive'
builds: ['x32-cli']
formats: ['tar.gz']
# this name template makes the OS and Arch compatible with the results of `uname`. # this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >- name_template: >-
{{ .ProjectName }}_ x32-cli_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
formats: ['zip']
- id: 'xair-cli-archive'
builds: ['xair-cli']
formats: ['tar.gz']
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
xair-cli_
{{- title .Os }}_ {{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64 {{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386 {{- else if eq .Arch "386" }}i386