Skip to content

Commit c53d048

Browse files
committed
add goreleaser.yml
1 parent e276fb0 commit c53d048

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

cmd/fti/.goreleaser.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
project_name: api_gen
2+
3+
env:
4+
- GO111MODULE=on
5+
6+
builds:
7+
- main: .
8+
binary: api_gen
9+
ldflags:
10+
- -s -w
11+
- -X github.com/go-generalize/fti/common.AppVersion={{.Version}}
12+
env:
13+
- CGO_ENABLED=0
14+
goos:
15+
- linux
16+
- darwin
17+
- windows
18+
goarch:
19+
- amd64
20+
- arm64
21+
22+
archives:
23+
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
24+
replacements:
25+
darwin: darwin
26+
linux: linux
27+
windows: windows
28+
386: i386
29+
amd64: x86_64
30+
format_overrides:
31+
- goos: windows
32+
format: zip
33+
34+
release:
35+
prerelease: auto

0 commit comments

Comments
 (0)