Skip to content

Commit 7d1c004

Browse files
committed
Modify goreleaser config
1 parent 7a00d1a commit 7d1c004

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.goreleaser.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1+
project_name: gist
2+
env:
3+
- GO111MODULE=on
4+
before:
5+
hooks:
6+
- go mod tidy
17
builds:
2-
- binary: iap_curl
8+
- main: .
9+
binary: iap_curl
310
goos:
411
- darwin
512
- linux
613
goarch:
714
- amd64
8-
ldflags:
9-
- -X main.Version={{.Version}}
10-
archive:
11-
format: zip
12-
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
13-
files:
14-
- README.md
15+
ldflags:
16+
- -s -w
17+
- -X main.Version={{.Version}}
18+
env:
19+
- CGO_ENABLED=0
20+
archives:
21+
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
22+
replacements:
23+
darwin: darwin
24+
linux: linux
25+
windows: windows
26+
386: i386
27+
amd64: x86_64
28+
format_overrides:
29+
- goos: windows
30+
format: zip
1531
release:
16-
github:
17-
owner: b4b4r07
18-
name: iap_curl
32+
prerelease: auto

0 commit comments

Comments
 (0)