-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
149 lines (132 loc) · 3.94 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
version: 2
builds:
- id: fhome
binary: fhome
main: ./cmd/fhome
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
- id: fhomed
binary: fhomed
main: ./cmd/fhomed
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
archives:
- id: fhome
name_template: "fhome_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- fhome
files:
- LICENSE
- README.md
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
- id: fhomed
name_template: "fhomed_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- fhomed
files:
- LICENSE
- README.md
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
changelog:
disable: true
brews:
- name: fhome
ids:
- fhome
repository:
owner: bartekpacia
name: homebrew-tools
directory: Formula
homepage: https://github.com/bartekpacia/fhome
description: Interact with smart home devices connected to F&Home
license: MIT
install: |
bin.install "fhome"
generate_completions_from_executable(bin/"fhome", "completion")
- name: fhomed
ids:
- fhomed
repository:
owner: bartekpacia
name: homebrew-tools
directory: Formula
homepage: https://github.com/bartekpacia/fhome
description: Background daemon for F&Home
license: MIT
install: |
man_content = `./fhomed docs --format man-with-section`
File.write("fhomed.1", man_content)
bin.install "fhomed"
generate_completions_from_executable(bin/"fhomed", "completion")
man1.install "fhomed.1"
aurs:
- name: fhome-bin
ids:
- fhome
homepage: https://github.com/bartekpacia/fhome
description: Interact with smart home devices connected to F&Home
maintainers:
- Bartek Pacia <barpac02@gmail.com>
private_key: "{{ .Env.AUR_SSH_PRIVATE_KEY }}"
git_url: git@github.com:bartekpacia/aur.git
directory: fhome-bin
commit_msg_template: update fhome to {{ .Tag }}
package: |
cd "$pkgname-$pkgver"
# bin
install -Dm755 fhome "${pkgdir}/usr/bin/fhome"
# license
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/fhome/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
# TODO: use completion scripts from executable
install -Dm755 autocomplete/bash_autocomplete_fhome "${pkgdir}/usr/share/bash-completion/completions/fhome"
install -Dm755 autocomplete/zsh_autocomplete_fhome "${pkgdir}/usr/share/zsh/site-functions/_fhome"
# man pages
# install -Dm644 "./manpages/mybin.1.gz" "${pkgdir}/usr/share/man/man1/mybin.1.gz"
- name: fhomed-bin
ids:
- fhomed
homepage: https://github.com/bartekpacia/fhome
description: Background daemon for F&Home
maintainers:
- Bartek Pacia <barpac02@gmail.com>
private_key: "{{ .Env.AUR_SSH_PRIVATE_KEY }}"
git_url: git@github.com:bartekpacia/aur.git
directory: fhomed-bin
commit_msg_template: update fhomed to {{ .Tag }}
package: |
cd "$pkgname-$pkgver"
# bin
install -Dm755 fhomed "${pkgdir}/usr/bin/fhomed"
# license
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/fhomed/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
# TODO: use completion scripts from executable
install -Dm755 autocomplete/bash_autocomplete_fhomed "${pkgdir}/usr/share/bash-completion/completions/fhomed"
install -Dm755 autocomplete/zsh_autocomplete_fhomed "${pkgdir}/usr/share/zsh/site-functions/_fhomed"
# man pages
# install -Dm644 "./manpages/mybin.1.gz" "${pkgdir}/usr/share/man/man1/mybin.1.gz"