update goreleaser profile

This commit is contained in:
Simon Ding
2025-09-01 14:35:17 +08:00
parent f538cfc29d
commit 8db1fb4d40

View File

@@ -22,7 +22,6 @@ builds:
- linux - linux
- windows - windows
- darwin - darwin
- freebsd
main: ./cmd/polaris main: ./cmd/polaris
ldflags: ldflags:
- -X polaris/db.Version={{ .Summary }} -X polaris/db.DefaultTmdbApiKey={{ .Env.TMDB_API_KEY }} - -X polaris/db.Version={{ .Summary }} -X polaris/db.DefaultTmdbApiKey={{ .Env.TMDB_API_KEY }}
@@ -32,13 +31,18 @@ builds:
- arm - arm
goarm: goarm:
- 7 - 7
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
archives: archives:
- formats: [tar.gz] - 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 }}_ {{ .ProjectName }}_
{{- title .Os }}_ {{- .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
{{- else }}{{ .Arch }}{{ end }} {{- else }}{{ .Arch }}{{ end }}