forked from pomdtr/sunbeam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
79 lines (76 loc) · 2.39 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
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- go mod tidy
- rm -rf completions
- mkdir completions
- sh -c 'go run . completion "bash" >./completions/{{ .ProjectName }}.bash'
- sh -c 'go run . completion "zsh" >./completions/{{ .ProjectName }}.zsh'
- sh -c 'go run . completion "fish" >./completions/{{ .ProjectName }}.fish'
changelog:
skip: true
builds:
- main: .
binary: sunbeam
ldflags:
- s -w
- -X github.com/pomdtr/sunbeam/internal/cli.Version={{.Version}}
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- darwin
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 7
archives:
- name_template: "{{ .Binary }}-{{ .Os }}_{{ .Arch }}"
files:
- README.md
- LICENSE-MIT
- completions/*
checksum:
name_template: "checksums.txt"
release:
prerelease: auto
extra_files:
- glob: internal/schemas/config.schema.json
snapshot:
name_template: "{{ incpatch .Version }}-next"
brews:
- name: sunbeam
homepage: https://sunbeam.pomdtr.me
repository:
owner: pomdtr
name: homebrew-tap
install: |-
bin.install "sunbeam"
bash_completion.install "completions/sunbeam.bash"
zsh_completion.install "completions/sunbeam.zsh"
fish_completion.install "completions/sunbeam.fish"
aurs:
- name: sunbeam-bin
homepage: https://sunbeam.pomdtr.me
description: Generate powerful UIs from simple scripts written in any language.
maintainers:
- "Achille Lacoin <achille.lacoin@gmail.com>"
license: MIT
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/sunbeam-bin.git"
package: |-
# bin
install -Dm755 "./sunbeam" "${pkgdir}/usr/bin/sunbeam"
# license
install -Dm644 "./LICENSE-MIT" "${pkgdir}/usr/share/licenses/sunbeam/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
install -Dm644 "./completions/sunbeam.bash" "${pkgdir}/usr/share/bash-completion/completions/sunbeam"
install -Dm644 "./completions/sunbeam.zsh" "${pkgdir}/usr/share/zsh/site-functions/_sunbeam"
install -Dm644 "./completions/sunbeam.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/sunbeam.fish"