-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
156 lines (133 loc) · 3.38 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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: imageconvert
main: ./cmd/imageconvert/
env:
- CGO_ENABLED=0
binary: imageconvert
ldflags:
- -s -w -X main.build={{.Version}}
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.Date}}
goos:
- freebsd
- windows
- darwin
- linux
- js
goarch:
- amd64
- arm64
- id: trimlog
main: ./cmd/trimlog/
env:
- CGO_ENABLED=0
binary: trimlog
ldflags:
- -s -w -X main.build={{.Version}}
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.Date}}
goos:
- freebsd
- windows
- darwin
- linux
- js
goarch:
- amd64
- arm64
- id: fixfilenames
main: ./cmd/fixfilenames/
env:
- CGO_ENABLED=0
binary: fixfilenames
ldflags:
- -s -w -X main.build={{.Version}}
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.Date}}
goos:
- freebsd
- windows
- darwin
- linux
- js
goarch:
- amd64
- arm64
release:
github:
owner: kmulvey
name: imageconvert
# Whether to remove existing draft releases with the same name before creating
replace_existing_draft: true
# Whether to remove an artifact that already exists.
replace_existing_artifacts: true
archives:
- id: dist
builds:
- imageconvert
- trimlog
- fixfilenames
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
nfpms:
# note that this is an array of nfpm configs
- # ID of the nfpm config, must be unique.
id: imageconvert
package_name: imageconvert
builds:
- imageconvert
- trimlog
- fixfilenames
# Your app's vendor.
vendor: Kevin Mulvey
# Your app's homepage.
homepage: https://github.com/kmulvey/imageconvert
# Your app's maintainer (probably you).
maintainer: Drummer <drum-roll@example.com>
# Your app's description.
description: |-
Convert and compress large libraries of images
# Your app's license.
license: MIT
# Formats to be generated.
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
provides:
- imageconvert
- trimlog
- fixfilenames
# Path that the binaries should be installed.
# Default: '/usr/bin'
bindir: /usr/bin
# Custom configuration applied only to the RPM packager.
rpm:
group: root
compression: lzma
# The package is signed if a key_file is set
#signature:
# PGP secret key file path (can also be ASCII-armored).
# The passphrase is taken from the environment variable
# `$NFPM_ID_RPM_PASSPHRASE` with a fallback to `$NFPM_ID_PASSPHRASE`,
# where ID is the id of the current nfpm config.
# The id will be transformed to uppercase.
# E.g. If your nfpm id is 'default' then the rpm-specific passphrase
# should be set as `$NFPM_DEFAULT_RPM_PASSPHRASE`
#
# Templates: allowed
#key_file: "/home/kmulvey/keys/sec.gpg"