-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
189 lines (171 loc) · 4.62 KB
/
.goreleaser.yaml
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# Make sure to check the documentation at https://goreleaser.com
version: 2 # Goreleaser v2
release:
draft: true
replace_existing_draft: true
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: linux
main: ./cmd/tkey-verification
binary: tkey-verification
env:
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
flags:
- -trimpath
- -buildvcs=false
# Custom ldflags mostly to avoid setting main.date which for some
# reason is default
ldflags:
-w -X main.version={{ .Version }} -buildid=
- id: darwin
main: ./cmd/tkey-verification
binary: tkey-verification
env:
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
- arm64
flags:
- -trimpath
- -buildvcs=false
# Custom ldflags mostly to avoid setting main.date which for some
# reason is default
ldflags:
-w -X main.version={{ .Version }} -buildid=
- id: windows
main: ./cmd/tkey-verification
binary: tkey-verification
env:
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
- arm64
flags:
- -trimpath
- -buildvcs=false
# Custom ldflags mostly to avoid setting main.date which for some
# reason is default
ldflags:
-w -X main.version={{ .Version }} -buildid=
universal_binaries:
- ids:
- darwin
replace: true
name_template: "tkey-verification"
hooks:
post: gon gon.hcl
archives:
- format: tar.gz
allow_different_binary_count: true
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "all" }}universal
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
files:
- src: doc/tkey-verification.1
dst: man
strip_parent: true
nfpms:
- package_name: tkey-verification
vendor: Tillitis AB
homepage: https://tillitis.se/
maintainer: Tillitis <[email protected]>
description: |-
A program to sign or verify the identity of a Tillitis TKey.
license: "GPL-2.0-only"
formats:
- apk
- deb
- rpm
- archlinux # Since: v1.13
bindir: /usr/bin
release: 1
section: misc
contents:
- src: doc/tkey-verification.1
dst: /usr/share/man/man1/tkey-verification.1
file_info:
mode: 0644
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
winget:
- name: TKeyVerification
publisher: Tillitis
short_description: "A program to sign or verify the identity of a Tillitis TKey."
license: "GPL-2.0-only"
publisher_url: https://tillitis.se/
publisher_support_url: "https://github.com/tillitis/tkey-verification/issues/new"
package_identifier: Tillitis.TKeyVerification
homepage: "https://tillitis.se/"
description: "A program to sign or verify the identity of a Tillitis TKey."
license_url: "https://github.com/tillitis/tkey-verification/blob/main/LICENSE"
copyright: "Tillitis AB"
skip_upload: true
release_notes: "{{.Changelog}}"
repository:
owner: tillitis
name: winget-pkgs
brews:
- name: tkey-verification
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Formula
# Caveats for the user of your binary.
#caveats: "How to use this binary"
homepage: "https://tillitis.se/"
description: "A program to sign or verify the identity of a Tillitis TKey."
license: "GPL-2.0-only"
skip_upload: true
install: |
bin.install "tkey-verification"
man1.install "man/tkey-verification.1"
# Repository to push the generated files to.
repository:
owner: tillitis
name: homebrew-tkey
branch: main
pull_request:
enabled: true
draft: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort:
filters:
exclude:
- '^docs:'
- '^test:'