Browse Source

fix: update goreleaser config to fix build errors

pull/85/head
dacrab 5 months ago
parent
commit
114ac32618
  1. 25
      .goreleaser.yml

25
.goreleaser.yml

@ -3,7 +3,8 @@ before:
- go mod tidy - go mod tidy
builds: builds:
- main: ./cmd/cursor-id-modifier
- id: cursor-id-modifier
main: ./cmd/cursor-id-modifier/main.go
binary: cursor-id-modifier binary: cursor-id-modifier
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
@ -12,12 +13,12 @@ builds:
- windows - windows
- darwin - darwin
goarch: goarch:
- amd64 # Intel 64-bit
- arm64 # Apple Silicon/ARM64
- "386" # Intel 32-bit
- amd64
- arm64
- "386"
ignore: ignore:
- goos: darwin - goos: darwin
goarch: "386" # No 32-bit support for macOS
goarch: "386"
ldflags: ldflags:
- -s -w - -s -w
- -X main.version={{.Version}} - -X main.version={{.Version}}
@ -26,23 +27,27 @@ builds:
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: '{{ .CommitTimestamp }}'
archives: archives:
- format: tar.gz
- id: default
format: tar.gz
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
name_template: >- name_template: >-
{{ .ProjectName }}_ {{ .ProjectName }}_
{{- .Version }}_ {{- .Version }}_
{{- title .Os }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x64{{ end }} {{- if eq .Arch "amd64" }}x64{{ end }}
{{- if eq .Arch "386" }}x86{{ end }} {{- if eq .Arch "386" }}x86{{ end }}
{{- if eq .Arch "arm64" }}arm64{{ end }} {{- if eq .Arch "arm64" }}arm64{{ end }}
{{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }} {{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }}
{{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }} {{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }}
files: files:
- README.md
- LICENSE
- scripts/* # Include installation scripts
- src: README.md
dst: .
- src: LICENSE
dst: .
- src: scripts/*
dst: scripts
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'

Loading…
Cancel
Save