Skip to content

Commit

Permalink
chore: update GoReleaser configuration for improved binary naming and…
Browse files Browse the repository at this point in the history
… build settings

- Modified binary naming template to include project name and version for better identification.
- Enhanced architecture handling in the naming template to support additional architectures.
- Added 'cursor-id-modifier' to the build settings for more specific build targeting.
- Allowed different binary counts in the release process, improving flexibility in output.
  • Loading branch information
yuaotian committed Dec 30, 2024
1 parent d36f868 commit dc77615
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ archives:
- id: binary
format: binary
name_template: >-
{{ .Binary }}_
{{- .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x64{{ end }}
{{- if eq .Arch "386" }}x86{{ end }}
{{- if eq .Arch "arm64" }}arm64{{ end }}
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
builds:
- cursor-id-modifier
allow_different_binary_count: true
files:
- none*

checksum:
name_template: 'checksums.txt'
Expand Down

0 comments on commit dc77615

Please # to comment.