-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.goreleaser.yml
115 lines (107 loc) · 2.38 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
project_name: loophole
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- id: loophole-cli
binary: loophole
goos:
- linux
- darwin
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}
- id: loophole-cli-win
binary: loophole
goos:
- windows
goarch:
- 386
- amd64
goarm:
- 6
- 7
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}
- id: loophole-desktop
binary: loophole-desktop
goos:
- darwin
- linux
goarch:
- amd64
- 386
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}
flags:
- -tags=desktop
- id: loophole-desktop-win
binary: loophole-desktop
goos:
- windows
goarch:
- amd64
- 386
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -H windowsgui
flags:
- -tags=desktop
archives:
- id: cli
builds:
- loophole-cli
- loophole-cli-win
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
name_template: >-
{{ .ProjectName }}-cli_{{ .Version }}_
{{- if eq .Os "darwin" }}macos{{ else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}_{{ .Mips }}{{ end }}
- id: desktop
builds:
- loophole-desktop
- loophole-desktop-win
name_template: >-
{{ .ProjectName }}-desktop_{{ .Version }}_
{{- if eq .Os "darwin" }}macos{{ else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}_{{ .Mips }}{{ end }}
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- Merge pull request
- Merge branch
- go mod tidy