Skip to content

Commit

Permalink
fix: Fix the gorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
lubronzhan committed Jul 4, 2023
1 parent 801db44 commit 86cadf2
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ archives:
- id: govcbuild
builds:
- govc
name_template: "govc_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements: &replacements
darwin: Darwin
linux: Linux
windows: Windows
freebsd: FreeBSD
amd64: x86_64
name_template: >-
govc_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides: &overrides
- goos: windows
format: zip
Expand All @@ -52,8 +51,12 @@ archives:
- id: vcsimbuild
builds:
- vcsim
name_template: "vcsim_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements: *replacements
name_template: >-
vcsim_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides: *overrides
files: *extrafiles

Expand Down

0 comments on commit 86cadf2

Please sign in to comment.