File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
1
3
project_name : vproxy
2
4
before :
3
5
hooks :
@@ -19,7 +21,7 @@ archives:
19
21
checksum :
20
22
name_template : " checksums.txt"
21
23
snapshot :
22
- name_template : " {{ .Tag }}-next"
24
+ version_template : " {{ .Tag }}-next"
23
25
changelog :
24
26
sort : asc
25
27
filters :
@@ -186,7 +188,7 @@ brews:
186
188
name : Chetan Sarva (via goreleaser)
187
189
188
190
189
- folder : Formula
191
+ directory : Formula
190
192
191
193
homepage : " https://github.com/jittering/vproxy"
192
194
description : " Zero-config virtual proxies with tls"
Original file line number Diff line number Diff line change @@ -31,8 +31,14 @@ check-style:
31
31
brew style --display-cop-names --except-cops=" $$ {cops}" ./dist/* .rb;
32
32
33
33
build-brew :
34
- go build -o vproxy ./bin/vproxy/
35
- sudo mv vproxy /usr/local/opt/vproxy/bin/vproxy
34
+ go build -ldflags \
35
+ " -X main.version=snapshot \
36
+ -X main.commit=$$(git rev-parse HEAD ) \
37
+ -X main.date=$$(date -u +%Y-%m-%dT%H:%M:%SZ ) \
38
+ -X main.builtBy=$$(whoami ) " \
39
+ -o vproxy ./bin/vproxy/
40
+
41
+ sudo mv vproxy /opt/homebrew/opt/vproxy/bin/vproxy
36
42
sudo pkill -f 'vproxy daemon'
37
43
38
44
clean :
You can’t perform that action at this time.
0 commit comments