-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
100 lines (90 loc) · 2.47 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
---
variables:
main: "."
binary_name: "songlinkrr"
description: "a CLI tool to get song links for your currently playing songs on Plex"
github_url: "https://github.com/jon4hz/songlinkrr"
maintainer: "jonah <me@jon4hz.io>"
license: "MIT"
homepage: "https://jon4hz.io"
aur_package: |-
# bin
install -Dm755 "./songlinkrr" "${pkgdir}/usr/bin/songlinkrr"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/songlinkrr/LICENSE"
before:
hooks:
- go mod tidy
builds:
- id: default
env:
- CGO_ENABLED=0
main: "{{ .Var.main }}"
binary: "{{ .Var.binary_name }}"
ldflags:
- -s
- -w
- -X github.com/jon4hz/{{ .Var.binary_name }}/version.Version={{ .Version }}
- -X github.com/jon4hz/{{ .Var.binary_name }}/version.Commit={{ .Commit }}
- -X github.com/jon4hz/{{ .Var.binary_name }}/version.Date={{ .Date }}
- -X github.com/jon4hz/{{ .Var.binary_name }}/version.BuiltBy=goreleaser
flags:
- -trimpath
goos:
- linux
goarch:
- amd64
archives:
- id: default
name_template: "{{ .Var.binary_name }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
builds:
- default
files:
- LICENSE*
- README*
- CHANGELOG*
checksum:
name_template: "checksums.txt"
nfpms:
- file_name_template: "{{ .Var.binary_name }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
vendor: jon4hz
homepage: "{{ .Var.homepage }}"
maintainer: "{{ .Var.maintainer }}"
description: "{{ .Var.description }}"
license: "{{ .Var.license }}"
formats:
- apk
- deb
- rpm
aurs:
- name: "{{ .Var.binary_name }}-bin"
homepage: "{{ .Var.homepage }}"
description: "{{ .Var.description }}"
maintainers:
- "{{ .Var.maintainer }}"
license: "{{ .Var.license }}"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/{{ .Var.binary_name }}-bin.git"
package: "{{ .Var.aur_package }}"
source:
enabled: true
snapshot:
name_template: "{{ incpatch .Version }}-devel"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
groups:
- title: "New Features"
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Others
order: 999
furies:
- account: jon4hz