-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
49 lines (46 loc) · 1.03 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
project_name: lipo
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: .
binary: lipo
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/konoui/lipo/cmd.Version={{.Version}}
- -X github.com/konoui/lipo/cmd.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
archives:
- name_template: >-
{{- .ProjectName }}_
{{- if eq .Os "darwin" }}macOS
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format: binary
- id: targz
name_template: >-
{{- .ProjectName }}_
{{- if eq .Os "darwin" }}macOS
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format: tar.gz
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
prerelease: auto