-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
119 lines (111 loc) · 2.88 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
version: 1
before:
hooks:
- go mod tidy
- go generate ./...
## This creates MANUAL and MANUAL.html. The gzip then makes MANUAL.gz (a man page).
- go run github.com/davidnewhall/[email protected] --manual xt --version "{{.Version}}" --date "{{.Date}}" MANUAL.md
- rm -f MANUAL.gz
- gzip -9 MANUAL
builds:
- env:
- CGO_ENABLED=0
- CGO_LDFLAGS=-mmacosx-version-min=10.8
- CGO_CFLAGS=-mmacosx-version-min=10.8
goos:
- linux
- windows
- freebsd
- darwin
goarch:
- amd64
- arm
- arm64
- '386'
ldflags:
- -s -w
- -X "golift.io/version.Version={{.Version}}"
- -X "golift.io/version.BuildDate={{.Date}}"
- -X "golift.io/version.BuildUser={{.Env.USER}}"
- -X "golift.io/version.Revision={{.Env.REVISION}}"
- -X "golift.io/version.Branch={{.Branch}} ({{.ShortCommit}})"
ignore:
- goos: windows
goarch: arm
- goos: darwin
goarch: arm
- goos: darwin
goarch: '386'
universal_binaries:
- replace: true
archives:
- format: tar.gz
wrap_in_directory: true
files:
- src: MANUAL.html
dst: xt-manual.html
- src: LICENSE
dst: LICENSE.txt
format_overrides:
- goos: windows
format: zip
nfpms:
- id: xt-packages
vendor: Go Lift
homepage: https://unpackerr.com
maintainer: David Newhall II <captain at golift dot io>
description: eXtractor Tool - Recursively decompress archives
license: MIT
formats:
- deb
- rpm
- archlinux
- apk
bindir: /usr/bin
version_metadata: git
section: default
priority: extra
provides:
- xt
rpm:
signature:
key_file: "{{ .Env.GPG_SIGNING_KEY }}"
deb:
signature:
key_file: "{{ .Env.GPG_SIGNING_KEY }}"
type: origin
contents:
- src: MANUAL.gz
dst: /usr/share/man/man1/xt.1.gz
- src: LICENSE
dst: /usr/share/doc/xt/LICENSE.txt
- src: MANUAL.md
dst: /usr/share/doc/xt/MANUAL.md
signs:
- artifacts: all
brews:
- name: xt
# enable the line below only for testing locally
#skip_upload: true
repository:
owner: golift
name: homebrew-mugs
branch: master
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: https://unpackerr.com/
description: "eXtractor Tool - Recursively decompress archives"
license: MIT
url_template: "https://github.com/Unpackerr/xt/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
test: assert_match "xt v#{version}", shell_output("#{bin}/xt -v 2>&1", 2)
install: bin.install "xt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"