Skip to content

Commit 5fd06a1

Browse files
committed
Brew formula update for vproxy version v0.14
1 parent 978c74c commit 5fd06a1

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

Formula/vproxy.rb

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
class Vproxy < Formula
66
desc "Zero-config virtual proxies with tls"
77
homepage "https://github.com/jittering/vproxy"
8-
version "0.13"
8+
version "0.14"
99

1010
depends_on "mkcert"
1111
depends_on "nss"
1212

1313
on_macos do
14-
if Hardware::CPU.arm?
15-
url "https://github.com/jittering/vproxy/releases/download/v0.13/vproxy_darwin_arm64.tar.gz"
16-
sha256 "47200b524e03254fe985be48d1ae0cf618f5ee64dabe4079edc33305f6e9941d"
14+
if Hardware::CPU.intel?
15+
url "https://github.com/jittering/vproxy/releases/download/v0.14/vproxy_darwin_amd64.tar.gz"
16+
sha256 "4eccce4d3918c278c4b314db0c774308f7cfe953107c464ab5f75a45aae4310f"
1717

1818
def install
1919
bin.install "vproxy"
@@ -22,9 +22,9 @@ def install
2222
(bash_completion/"vproxy").write bash_output
2323
end
2424
end
25-
if Hardware::CPU.intel?
26-
url "https://github.com/jittering/vproxy/releases/download/v0.13/vproxy_darwin_amd64.tar.gz"
27-
sha256 "caf506dfc81a603f74cb26c1442d241e57857b959957b848b0b34f7ae1709a24"
25+
if Hardware::CPU.arm?
26+
url "https://github.com/jittering/vproxy/releases/download/v0.14/vproxy_darwin_arm64.tar.gz"
27+
sha256 "68fab1adbd87ed6868e3180f94d2ec56e89ace73e9af2a5d8f507b46f426b688"
2828

2929
def install
3030
bin.install "vproxy"
@@ -36,26 +36,30 @@ def install
3636
end
3737

3838
on_linux do
39-
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
40-
url "https://github.com/jittering/vproxy/releases/download/v0.13/vproxy_linux_arm64.tar.gz"
41-
sha256 "37370e1e055907ce4d76ccaa371088ec6bb9c3610a12729dbbcca1733f379b93"
39+
if Hardware::CPU.intel?
40+
if Hardware::CPU.is_64_bit?
41+
url "https://github.com/jittering/vproxy/releases/download/v0.14/vproxy_linux_amd64.tar.gz"
42+
sha256 "315b9199be6a1885dec97995cc2957cff726dd6e5049d4fc618eeb104ad168da"
4243

43-
def install
44-
bin.install "vproxy"
44+
def install
45+
bin.install "vproxy"
4546

46-
bash_output = Utils.safe_popen_read("#{bin}/vproxy", "bash_completion")
47-
(bash_completion/"vproxy").write bash_output
47+
bash_output = Utils.safe_popen_read("#{bin}/vproxy", "bash_completion")
48+
(bash_completion/"vproxy").write bash_output
49+
end
4850
end
4951
end
50-
if Hardware::CPU.intel?
51-
url "https://github.com/jittering/vproxy/releases/download/v0.13/vproxy_linux_amd64.tar.gz"
52-
sha256 "ace40aa6642a717e4def1a3cc5ef71ce4951e23e00ebb986f97eb0eef0361a9d"
52+
if Hardware::CPU.arm?
53+
if Hardware::CPU.is_64_bit?
54+
url "https://github.com/jittering/vproxy/releases/download/v0.14/vproxy_linux_arm64.tar.gz"
55+
sha256 "8da11976f617ae989f83e67c549199d5e306753488aea11afe2a7424e358c1c7"
5356

54-
def install
55-
bin.install "vproxy"
57+
def install
58+
bin.install "vproxy"
5659

57-
bash_output = Utils.safe_popen_read("#{bin}/vproxy", "bash_completion")
58-
(bash_completion/"vproxy").write bash_output
60+
bash_output = Utils.safe_popen_read("#{bin}/vproxy", "bash_completion")
61+
(bash_completion/"vproxy").write bash_output
62+
end
5963
end
6064
end
6165
end

0 commit comments

Comments
 (0)