mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-08-03 22:37:37 +08:00
fix: update goreleaser config to fix build errors
This commit is contained in:
parent
23295a049d
commit
114ac32618
@ -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
|
- amd64
|
||||||
- arm64 # Apple Silicon/ARM64
|
- arm64
|
||||||
- "386" # Intel 32-bit
|
- "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
|
- src: README.md
|
||||||
- LICENSE
|
dst: .
|
||||||
- scripts/* # Include installation scripts
|
- src: LICENSE
|
||||||
|
dst: .
|
||||||
|
- src: scripts/*
|
||||||
|
dst: scripts
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user