Skip to content

Commit 3a23122

Browse files
committed
fix: specify main entry point for goreleaser
1 parent 207dcdb commit 3a23122

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ builds:
1010
goarch:
1111
- amd64
1212
- arm64
13+
main: ./cmd/main.go
1314
ldflags:
1415
- -s -w -X main.version={{.Version}}
1516
binary: lx
1617

1718
archives:
18-
- format: tar.gz
19-
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
19+
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
20+
formats: ["tar.gz"]
2021
format_overrides:
2122
- goos: windows
22-
format: zip
23+
formats: ["zip"]
2324

2425
checksum:
2526
name_template: "checksums.txt"

0 commit comments

Comments
 (0)