Skip to content

Commit ccba5be

Browse files
committed
chore: Update Goreleaser configuration to simplify build main path, ldflags, and archive format specification.
1 parent 4523a63 commit ccba5be

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.goreleaser.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ before:
1717
- go mod tidy
1818

1919
builds:
20-
- main: ./main.go
20+
- main: .
2121
binary: code-lang
2222
env:
2323
- CGO_ENABLED=0
@@ -35,14 +35,14 @@ builds:
3535
- -trimpath
3636
ldflags:
3737
- -s -w
38-
- -X github.com/walonCode/code-lang/main.Version={{ .Version }}
39-
- -X github.com/walonCode/code-lang/main.Commit={{ .Commit }}
38+
- -X main.Version={{ .Version }}
39+
- -X main.Commit={{ .Commit }}
4040

4141
archives:
4242
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
4343
format_overrides:
4444
- goos: windows
45-
format: zip
45+
- formats: ['zip']
4646
files:
4747
- README.md
4848
- LICENSE

0 commit comments

Comments
 (0)