-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.goreleaser.yml
More file actions
187 lines (177 loc) · 5.56 KB
/
Copy path.goreleaser.yml
File metadata and controls
187 lines (177 loc) · 5.56 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
version: 2
before:
hooks:
- sh -c "mkdir -p completions"
- sh -c "CGO_ENABLED=0 go build -o completions/lazyworktree ./cmd/lazyworktree"
- sh -c "completions/lazyworktree completion bash > completions/lazyworktree.bash"
- sh -c "completions/lazyworktree completion zsh > completions/lazyworktree.zsh"
- sh -c "completions/lazyworktree completion fish > completions/lazyworktree.fish"
- sh -c "completions/lazyworktree completion pwsh > completions/lazyworktree.ps1"
- sh -c "rm -f completions/lazyworktree"
builds:
- id: lazyworktree
env:
- CGO_ENABLED=0
main: ./cmd/lazyworktree
binary: lazyworktree
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -w
- -s
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
- -X main.builtBy=goreleaser
archives:
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
formats: [zip]
files:
- LICENSE
- README.md
- config.example.yaml
- shell/**
- lazyworktree.1
- completions/*
homebrew_casks:
- name: lazyworktree
repository:
owner: chmouel
name: lazyworktree
directory: Casks
homepage: "https://github.com/chmouel/lazyworktree"
description: "lazyworktree - A TUI tool to manage git worktrees"
caveats: |
On first run, macOS may block the binary. To remove the quarantine attribute:
xattr -d com.apple.quarantine #{staged_path}/lazyworktree
dependencies:
- formula: git
- formula: git-delta
- formula: lazygit
- formula: less
- formula: tmux
snapshot:
version_template: "{{ .Tag }}-next"
release:
prerelease: "false"
checksum:
name_template: "checksums.txt"
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
homepage: https://github.com/chmouel/lazyworktree
description: "lazyworktree - A TUI tool to manage git worktrees"
maintainer: Chmouel Boudjnah <chmouel@chmouel.com>
license: Apache 2.0
formats:
- apk
- deb
- rpm
bindir: /usr/bin
dependencies:
- git
- git-delta
- lazygit
- less
- tmux
contents:
- src: config.example.yaml
dst: /usr/share/doc/lazyworktree/config.example.yaml
- src: shell/functions.bash
dst: /usr/share/lazyworktree/functions.bash
- src: shell/functions.zsh
dst: /usr/share/lazyworktree/functions.zsh
- src: shell/functions.fish
dst: /usr/share/lazyworktree/functions.fish
- src: lazyworktree.1
dst: /usr/share/man/man1/lazyworktree.1
- src: completions/lazyworktree.bash
dst: /usr/share/bash-completion/completions/lazyworktree
- src: completions/lazyworktree.zsh
dst: /usr/share/zsh/site-functions/_lazyworktree
- src: completions/lazyworktree.ps1
dst: /usr/share/powershell/Modules/lazyworktree/lazyworktree.ps1
- src: completions/lazyworktree.fish
dst: /usr/share/fish/vendor_completions.d/lazyworktree.fish
overrides:
deb:
dependencies:
- git
- git-delta
- lazygit
- less
- tmux
rpm:
dependencies:
- git
- git-delta
- lazygit
- less
- tmux
apk:
dependencies:
- git
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^Brew formula update"
- Merge pull request
- Merge branch
- go mod tidy
- Update README.md
- Update coverage badge
- Brew cask update
- ".*README.*"
universal_binaries:
- ids:
- lazyworktree
replace: true
aurs:
- name: lazyworktree-bin
homepage: "https://github.com/chmouel/lazyworktree"
description: "lazyworktree - A TUI tool to manage git worktrees"
maintainers:
- "Chmouel Boudjnah <chmouel@chmouel.com>"
license: Apache 2.0
private_key: "{{ .Env.AUR_PRIVATE_KEY }}"
git_url: ssh://aur@aur.archlinux.org/lazyworktree-bin.git
depends:
- git
- git-delta
- lazygit
- less
- tmux
package: |-
# bin
install -Dm755 "./lazyworktree" "${pkgdir}/usr/bin/lazyworktree"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/lazyworktree/LICENSE"
# config example
install -Dm644 "./config.example.yaml" "${pkgdir}/usr/share/doc/lazyworktree/config.example.yaml"
# shell functions
install -Dm644 "./shell/functions.bash" "${pkgdir}/usr/share/lazyworktree/functions.bash"
install -Dm644 "./shell/functions.zsh" "${pkgdir}/usr/share/lazyworktree/functions.zsh"
install -Dm644 "./shell/functions.fish" "${pkgdir}/usr/share/lazyworktree/functions.fish"
# man page
install -Dm644 "./lazyworktree.1" "${pkgdir}/usr/share/man/man1/lazyworktree.1"
# completions
install -Dm644 "./completions/lazyworktree.bash" "${pkgdir}/usr/share/bash-completion/completions/lazyworktree"
install -Dm644 "./completions/lazyworktree.zsh" "${pkgdir}/usr/share/zsh/site-functions/_lazyworktree"
install -Dm644 "./completions/lazyworktree.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/lazyworktree.fish"
install -Dm644 "./completions/lazyworktree.ps1" "${pkgdir}/usr/share/powershell/Modules/lazyworktree/lazyworktree.ps1"