-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
434 lines (407 loc) · 11.2 KB
/
Copy path.goreleaser.yaml
File metadata and controls
434 lines (407 loc) · 11.2 KB
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
report_sizes: true
project_name: hdf
env:
- CGO_ENABLED=0
before:
hooks:
- go mod tidy
- go mod download
- ./scripts/completions.sh
gomod:
proxy: true
builds:
- id: default
binary: hdf
main: .
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
- "386"
- riscv64
goarm:
- "7"
goamd64:
- v1
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: windows
goarch: riscv64
- goos: darwin
goarch: "386"
- goos: darwin
goarch: riscv64
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.FullCommit}} -X main.date={{.CommitDate}}
mod_timestamp: '{{ .CommitTimestamp }}'
universal_binaries:
- id: hdf-universal
ids:
- default
replace: false
name_template: 'hdf'
archives:
- id: default
builds_info:
mode: 0755
mtime: "{{ .CommitDate }}"
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "windows" }}Windows
{{- else if eq .Os "darwin" }}macOS
{{- else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "all" }}universal
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- completions/*
checksum:
name_template: 'checksums.txt'
algorithm: sha256
source:
enabled: true
signs:
- id: checksum-sign
cmd: cosign
certificate: "${artifact}.pem"
artifacts: checksum
output: true
args:
- sign-blob
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
release:
github:
owner: aiomayo
name: hdf
mode: append
nfpms:
- id: packages
package_name: hdf
vendor: aiomayo
homepage: https://github.com/aiomayo/hdf
maintainer: Sebastian Stepper <sebastian-stepper@gmx.de>
description: To Assacinate Annoying processes
license: MIT
section: devel
priority: optional
formats:
- deb
- rpm
- apk
- archlinux
bindir: /usr/bin
contents:
- src: ./completions/hdf.bash
dst: /usr/share/bash-completion/completions/hdf
file_info:
mode: 0644
- src: ./completions/hdf.zsh
dst: /usr/share/zsh/vendor-completions/_hdf
file_info:
mode: 0644
- src: ./completions/hdf.fish
dst: /usr/share/fish/vendor_completions.d/hdf.fish
file_info:
mode: 0644
scripts:
postinstall: "scripts/postinstall.sh"
preremove: "scripts/preremove.sh"
#brews:
# - name: hdf
# repository:
# owner: aiomayo
# name: homebrew-tap
# branch: main
# token: "{{ .Env.PAT_TOKEN }}"
# commit_author:
# name: goreleaserbot
# email: "[email protected]"
# commit_msg_template: "chore: update {{ .ProjectName }} to {{ .Tag }}"
# homepage: "https://github.com/aiomayo/hdf"
# description: "To Assacinate Annoying processes"
# license: "MIT"
# directory: Formula
# install: |
# bin.install "hdf"
# bash_completion.install "completions/hdf.bash" => "hdf"
# zsh_completion.install "completions/hdf.zsh" => "_hdf"
# fish_completion.install "completions/hdf.fish"
# test: |
# system "#{bin}/hdf", "--version"
#homebrew_casks:
# - name: hdf
# repository:
# owner: aiomayo
# name: homebrew-tap
# branch: main
# token: "{{ .Env.PAT_TOKEN }}"
# commit_author:
# name: goreleaserbot
# email: "[email protected]"
# commit_msg_template: "chore: update {{ .ProjectName }} to {{ .Tag }}"
# homepage: "https://github.com/aiomayo/hdf"
# description: "To Assacinate Annoying processes"
# license: "MIT"
# directory: Casks
# url:
# verified: github.com/aiomayo/hdf
# binaries:
# - hdf
# completions:
# bash: completions/hdf.bash
# zsh: completions/hdf.zsh
# fish: completions/hdf.fish
# hooks:
# post:
# install: |
# if OS.mac?
# system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/hdf"]
# end
#
# - name: "hdf@{{ .Major }}.{{ .Minor }}"
# repository:
# owner: aiomayo
# name: homebrew-tap
# branch: main
# token: "{{ .Env.PAT_TOKEN }}"
# commit_author:
# name: goreleaserbot
# email: "[email protected]"
# commit_msg_template: "chore: add {{ .ProjectName }}@{{ .Major }}.{{ .Minor }} ({{ .Tag }})"
# homepage: "https://github.com/aiomayo/hdf"
# description: "To Assacinate Annoying processes (v{{ .Major }}.{{ .Minor }}.x)"
# license: "MIT"
# directory: Casks
# url:
# verified: github.com/aiomayo/hdf
# binaries:
# - hdf
# completions:
# bash: completions/hdf.bash
# zsh: completions/hdf.zsh
# fish: completions/hdf.fish
# hooks:
# post:
# install: |
# if OS.mac?
# system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/hdf"]
# end
#scoops:
# - name: hdf
# repository:
# owner: aiomayo
# name: scoop-bucket
# branch: main
# token: "{{ .Env.PAT_TOKEN }}"
#
# commit_author:
# name: goreleaserbot
# email: "[email protected]"
#
# commit_msg_template: "chore: update {{ .ProjectName }} to {{ .Tag }}"
#
# homepage: "https://github.com/aiomayo/hdf"
# description: "To Assacinate Annoying processes"
# license: MIT
#
# shortcuts:
# - ["hdf.exe", "hdf"]
#chocolateys:
# - name: hdf
# ids:
# - default
# owners: aiomayo
# authors: Sebastian Stepper
# title: hdf - To Assacinate Annoying processes
#
# project_url: https://github.com/aiomayo/hdf
# project_source_url: https://github.com/aiomayo/hdf
# package_source_url: https://github.com/aiomayo/hdf
# license_url: https://github.com/aiomayo/hdf/blob/main/LICENSE
# docs_url: https://github.com/aiomayo/hdf#readme
# bug_tracker_url: https://github.com/aiomayo/hdf/issues
#
# copyright: 2025 aiomayo
# require_license_acceptance: false
#
# tags: "cli process-killer productivity developer-tools"
# summary: To Assacinate Annoying processes
# description: hdf is a smart process killer. Kill processes by port, name, PID, or pattern.
#
# release_notes: "https://github.com/aiomayo/hdf/releases/tag/{{ .Tag }}"
#
# api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
# source_repo: "https://push.chocolatey.org/"
# goamd64: v1
#snapcrafts:
# - name: hdf
# title: hdf
#
# summary: To Assacinate Annoying processes
#
# description: hdf is a smart process killer. Kill processes by port, name, PID, or pattern.
#
# publish: true
# grade: stable
# confinement: strict
# base: core22
#
# license: MIT
#
# apps:
# hdf:
# command: hdf
# plugs:
# - home
# - network
#
# channel_templates:
# - stable
#aurs:
# - name: hdf-bin
# homepage: "https://github.com/aiomayo/hdf"
# description: "To Assacinate Annoying processes"
# maintainers:
# - "Sebastian Stepper <sebastian-stepper@gmx.de>"
# license: "MIT"
# private_key: "{{ .Env.AUR_SSH_PRIVATE_KEY }}"
# git_url: "ssh://aur@aur.archlinux.org/hdf-bin.git"
# optdepends:
# - "bash-completion: for bash completions"
# - "zsh: for zsh completions"
# - "fish: for fish completions"
#
# commit_author:
# name: goreleaserbot
# email: "[email protected]"
#
# commit_msg_template: "upgpkg: {{ .ProjectName }} {{ .Tag }}"
#
# package: |-
# # Binary
# install -Dm755 "./hdf" "${pkgdir}/usr/bin/hdf"
#
# # Shell completions
# install -Dm644 "./completions/hdf.bash" "${pkgdir}/usr/share/bash-completion/completions/hdf"
# install -Dm644 "./completions/hdf.zsh" "${pkgdir}/usr/share/zsh/site-functions/_hdf"
# install -Dm644 "./completions/hdf.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/hdf.fish"
#aur_sources:
# - name: hdf
# homepage: "https://github.com/aiomayo/hdf"
# description: "To Assacinate Annoying processes"
# maintainers:
# - "Sebastian Stepper <sebastian-stepper@gmx.de>"
# license: "MIT"
# private_key: "{{ .Env.AUR_SSH_PRIVATE_KEY }}"
# git_url: "ssh://aur@aur.archlinux.org/hdf.git"
# optdepends:
# - "bash-completion: for bash completions"
# - "zsh: for zsh completions"
# - "fish: for fish completions"
#
# commit_author:
# name: goreleaserbot
# email: "[email protected]"
# commit_msg_template: "upgpkg: {{ .ProjectName }} {{ .Tag }}"
# url_template: "https://github.com/aiomayo/hdf/releases/download/{{ .Tag }}/{{ .ProjectName }}-{{ .Version }}.tar.gz"
# provides:
# - hdf
# conflicts:
# - hdf-bin
# depends:
# - glibc
# makedepends:
# - go
# - git
# build: |-
# export CGO_CPPFLAGS="${CPPFLAGS}"
# export CGO_CFLAGS="${CFLAGS}"
# export CGO_CXXFLAGS="${CXXFLAGS}"
# export CGO_LDFLAGS="${LDFLAGS}"
# export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
#
# go build \
# -ldflags="-s -w -buildid='' -linkmode=external \
# -X main.version=${pkgver} \
# -X main.commit={{ .Commit }} \
# -X main.date={{ .CommitDate }}" \
# -o hdf .
#
# # Generate shell completions
# mkdir -p completions
# ./hdf --completion bash > completions/hdf.bash
# ./hdf --completion zsh > completions/hdf.zsh
# ./hdf --completion fish > completions/hdf.fish
#
# package: |-
# # Binary
# install -Dm755 ./hdf "${pkgdir}/usr/bin/hdf"
#
# # Shell completions
# install -Dm644 ./completions/hdf.bash "${pkgdir}/usr/share/bash-completion/completions/hdf"
# install -Dm644 ./completions/hdf.zsh "${pkgdir}/usr/share/zsh/site-functions/_hdf"
# install -Dm644 ./completions/hdf.fish "${pkgdir}/usr/share/fish/vendor_completions.d/hdf.fish"
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
abbrev: 7
format: "* {{ .SHA }} {{ .Message }}{{ if .AuthorUsername }} (@{{ .AuthorUsername }}){{ end }}"
groups:
- title: "Breaking Changes"
regexp: '^.*!:'
order: 0
- title: "Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+'
order: 1
- title: "Bug Fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+'
order: 2
- title: "Performance"
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+'
order: 3
- title: "Refactoring"
regexp: '^.*?refactor(\([[:word:]]+\))??!?:.+'
order: 4
- title: "Documentation"
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+'
order: 5
- title: "Tests"
regexp: '^.*?test(\([[:word:]]+\))??!?:.+'
order: 6
- title: "Build & CI"
regexp: '^.*?(build|ci)(\([[:word:]]+\))??!?:.+'
order: 7
- title: "Other Changes"
regexp: '^.*?(style|revert)(\([[:word:]]+\))??!?:.+'
order: 999
filters:
exclude:
- '^.*?chore(\([[:word:]]+\))??!?:.+'
- '^Merge'
- '^merge'
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"