-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
.goreleaser.yml
75 lines (75 loc) · 2.09 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
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- "386"
- "amd64"
- "arm"
- "arm64"
main: ./cmd/upterm
archives:
- format: tar.gz
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
wrap_in_directory: false
files:
- LICENSE*
- README*
- etc/*
- docs/*
brews:
- repository:
owner: owenthereal
name: homebrew-upterm
commit_author:
name: Owen Ou
email: [email protected]
homepage: https://upterm.dev
description: Instant Terminal Sharing
directory: Formula
license: "Apache 2.0"
custom_block: |
head "https://github.com/owenthereal/upterm.git"
install: |
bin.install "upterm"
man1.install Dir["etc/man/man1/upterm*.1"]
generate_completions_from_executable(bin/"upterm", "completion")
test: |
assert_match(/Upterm version/, shell_output("#{bin}/upterm version"))
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
release:
prerelease: auto
name_template: "Upterm {{.Version}}"
mode: append
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^script:"
- "^go.mod:"
- "^.github:"
- Merge branch
nfpms: #build:linux
- license: Apache-2.0
maintainer: Owen Ou <[email protected]>
homepage: https://github.com/owenthereal/upterm
bindir: /usr/bin
description: Instant Terminal Sharing
file_name_template: '{{ .PackageName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
formats:
- deb
- rpm
contents:
- src: "./etc/man/man1/upterm*.1"
dst: "/usr/share/man/man1"
- src: "./etc/completion/upterm.bash_completion.sh"
dst: "/usr/share/bash-completion/completions/upterm"
- src: "./etc/completion/upterm.zsh_completion"
dst: "/usr/share/zsh/site-functions/_upterm"