From 07a915ff017f9751230799b65670e82fb9724d1c Mon Sep 17 00:00:00 2001 From: Chetan Sarva Date: Tue, 8 Dec 2020 16:21:33 -0500 Subject: [PATCH] build: updated default config file --- .goreleaser.yml | 13 +++++++++++++ Makefile | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index f6f4300..d34585e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -118,6 +118,19 @@ brews: #http = 80 #https = 443 + + # The following paths are set explicitly to facilitate running as root + + # mkcert's CAROOT path + # Set to output of `mkcert -CAROOT` + caroot_path = "#{`mkcert -CAROOT`.strip}" + + # Path where generated certificates should be stored + cert_path = "#{ENV['HOME']}/.vproxy" + + # Path to mkcert program + mkcert_path = "#{`which mkcert`.strip}" + [client] #host = "127.0.0.1" #http = 80 diff --git a/Makefile b/Makefile index 94b8c08..01f016b 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,8 @@ build-mac: release: goreleaser release --rm-dist +build-brew: + go build -o vproxy ./bin/vproxy/ + sudo mv vproxy /usr/local/opt/vproxy/bin/vproxy + sudo killall vproxy +