-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
77 lines (67 loc) · 1.97 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
version: 2
builds:
- id: emu
binary: emu
main: ./cmd/emu
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- id: emu
name_template: "emu_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
- emu
files:
- LICENSE
- README.md
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
changelog:
disable: true
brews:
- name: emu
ids:
- emu
repository:
owner: bartekpacia
name: homebrew-tools
directory: Formula
homepage: https://github.com/bartekpacia/emu
description: Handy mini-CLI for more pleasant work with Android Emulator
license: MIT
install: |
man_content = `./emu docs --format man-with-section`
File.write("emu.1", man_content)
bin.install "emu"
generate_completions_from_executable(bin/"emu", "completion")
man1.install "emu.1"
aurs:
- name: emu-bin
ids:
- emu
homepage: https://github.com/bartekpacia/emu
description: Handy mini-CLI for more pleasant work with Android Emulator
maintainers:
- Bartek Pacia <barpac02@gmail.com>
private_key: "{{ .Env.AUR_SSH_PRIVATE_KEY }}"
git_url: git@github.com:bartekpacia/aur.git
directory: emu-bin
package: |
cd "$pkgname-$pkgver"
# bin
install -Dm755 emu "${pkgdir}/usr/bin/emu"
# license
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/emu/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 "${pkgdir}/usr/share/bash-completion/completions/emu"
install -Dm755 autocomplete/zsh_autocomplete "${pkgdir}/usr/share/zsh/site-functions/_emu"
# man pages
# install -Dm644 "./manpages/mybin.1.gz" "${pkgdir}/usr/share/man/man1/mybin.1.gz"