Skip to content

Commit 00903cf

Browse files
committed
fix: Add or correct .goreleaser.yml configuration
1 parent fdc57e7 commit 00903cf

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.goreleaser.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# .goreleaser.yml
2+
project_name: steamdownloaderapi
3+
4+
before:
5+
hooks:
6+
- go mod tidy
7+
8+
builds:
9+
- # This build configuration is for your application
10+
id: steamdownloaderapi
11+
# This line is crucial - it tells GoReleaser where your main function is.
12+
main: ./cmd/main.go
13+
binary: steamdownloaderapi
14+
env:
15+
- CGO_ENABLED=0
16+
goos:
17+
- linux
18+
- windows
19+
- darwin # macOS
20+
goarch:
21+
- amd64
22+
- arm64
23+
24+
archives:
25+
- name_template: >-
26+
{{ .ProjectName }}_
27+
{{- title .Os }}_
28+
{{- if eq .Arch "amd64" }}x86_64
29+
{{- else }}{{ .Arch }}{{ end }}
30+
format: tar.gz
31+
files:
32+
- README.md
33+
- LICENSE*
34+
35+
checksum:
36+
name_template: 'checksums.txt'
37+
38+
changelog:
39+
sort: asc
40+
filters:
41+
exclude:
42+
- '^docs:'
43+
- '^test:'
44+
- 'Merge pull request'
45+
- 'Merge branch'

0 commit comments

Comments
 (0)