refactor: improve goreleaser archive and nfpms configuration

This commit is contained in:
Prad Nukala 2025-01-01 14:11:36 -05:00
parent 571fb6100b
commit a90a553222
2 changed files with 7 additions and 9 deletions

View File

@ -61,8 +61,7 @@ archives:
- id: sonr
builds: [sonr]
name_template: >-
sonr_{{ .Version }}_
{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
sonr_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
@ -73,8 +72,7 @@ archives:
- id: hway
builds: [hway]
name_template: >-
hway_{{ .Version }}_
{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
hway_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
@ -85,7 +83,7 @@ archives:
nfpms:
- id: hway
package_name: hway
file_name_template: "{{ .ConventionalFileName }}"
file_name_template: "hway_{{ .Os }}_{{ .Arch }}.{{ .ConventionalExtension }}"
builds: [hway]
vendor: Sonr
homepage: "https://onsonr.dev"
@ -108,7 +106,7 @@ nfpms:
- id: sonr
package_name: sonrd
file_name_template: "{{ .ConventionalFileName }}"
file_name_template: "sonrd_{{ .Os }}_{{ .Arch }}.{{ .ConventionalExtension }}"
builds: [sonr]
vendor: Sonr
homepage: "https://onsonr.dev"

View File

@ -16,11 +16,11 @@ vars:
includes:
hway:
taskfile: taskfiles/Hway.yml
taskfile: https://tasks.sonr.dev/Hway.yml
ipfs:
taskfile: taskfiles/IPFS.yml
taskfile: https://tasks.sonr.dev/IPFS.yml
sonrd:
taskfile: taskfiles/Sonrd.yml
taskfile: https://tasks.sonr.dev/Sonrd.yml
tasks:
default: