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