Skip to content

Commit 1091f70

Browse files
committed
build: fix goreleaser; updated homebrew path for dev
1 parent 6bc6143 commit 1091f70

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.goreleaser.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
project_name: vproxy
24
before:
35
hooks:
@@ -19,7 +21,7 @@ archives:
1921
checksum:
2022
name_template: "checksums.txt"
2123
snapshot:
22-
name_template: "{{ .Tag }}-next"
24+
version_template: "{{ .Tag }}-next"
2325
changelog:
2426
sort: asc
2527
filters:
@@ -186,7 +188,7 @@ brews:
186188
name: Chetan Sarva (via goreleaser)
187189
188190

189-
folder: Formula
191+
directory: Formula
190192

191193
homepage: "https://github.com/jittering/vproxy"
192194
description: "Zero-config virtual proxies with tls"

Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ check-style:
3131
brew style --display-cop-names --except-cops="$${cops}" ./dist/*.rb;
3232

3333
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
3642
sudo pkill -f 'vproxy daemon'
3743

3844
clean:

0 commit comments

Comments
 (0)