File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+
13project_name : vproxy
24before :
35 hooks :
@@ -19,7 +21,7 @@ archives:
1921checksum :
2022 name_template : " checksums.txt"
2123snapshot :
22- name_template : " {{ .Tag }}-next"
24+ version_template : " {{ .Tag }}-next"
2325changelog :
2426 sort : asc
2527 filters :
@@ -186,7 +188,7 @@ brews:
186188 name : Chetan Sarva (via goreleaser)
187189 email : chetan@pixelcop.net
188190
189- folder : Formula
191+ directory : Formula
190192
191193 homepage : " https://github.com/jittering/vproxy"
192194 description : " Zero-config virtual proxies with tls"
Original file line number Diff line number Diff line change @@ -31,8 +31,14 @@ check-style:
3131 brew style --display-cop-names --except-cops=" $$ {cops}" ./dist/* .rb;
3232
3333build-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
3642 sudo pkill -f 'vproxy daemon'
3743
3844clean :
You can’t perform that action at this time.
0 commit comments