Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 19b49fc

Browse files
authored
Merge pull request #42 from KusionStack/fix-wrong-goreleaser-config
fix: wrong .goreleaser.yml configuration
2 parents b1bd5ed + fa52423 commit 19b49fc

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.goreleaser.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ builds:
2525
# goarch: arm64
2626
main: .
2727
archives:
28-
- replacements:
29-
darwin: Darwin
30-
linux: Linux
31-
windows: Windows
32-
386: i386
33-
amd64: x86_64
28+
- id: foo
29+
name_template: >-
30+
{{ .ProjectName }}_
31+
{{- title .Os }}_
32+
{{- if eq .Arch "amd64" }}x86_64
33+
{{- else if eq .Arch "386" }}i386
34+
{{- else }}{{ .Arch }}{{ end }}
3435
checksum:
3536
name_template: 'checksums.txt'
3637
snapshot:
@@ -106,4 +107,4 @@ brews:
106107
license: "MIT"
107108
skip_upload: false
108109
test: |
109-
system "#{bin}/kusionup version"
110+
system "#{bin}/kusionup version"

0 commit comments

Comments
 (0)