Skip to content

Commit

Permalink
Brew formula update for vproxy version v0.12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan committed Aug 17, 2023
1 parent 5bfd09e commit eaf5647
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Formula/vproxy-head.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
class VproxyHead < Formula
desc "Zero-config virtual proxies with tls"
homepage "https://github.com/jittering/vproxy"
version "0.12.2"
version "0.12.3"

depends_on "go"
depends_on "mkcert"
depends_on "nss"

on_macos do
if Hardware::CPU.arm?
url "https://github.com/jittering/vproxy/releases/download/v0.12.2/vproxy_darwin_arm64.tar.gz"
sha256 "acdf00e3741c19fc63abca3d6858399b15199bef32f9f2ea44851f62076ec797"
url "https://github.com/jittering/vproxy/releases/download/v0.12.3/vproxy_darwin_arm64.tar.gz"
sha256 "19b4a63357673f497411aed49cf02cef25cf06a295d1fd313603968163f8a818"

def install
if build.head?
Expand All @@ -29,8 +29,8 @@ def install
end
end
if Hardware::CPU.intel?
url "https://github.com/jittering/vproxy/releases/download/v0.12.2/vproxy_darwin_amd64.tar.gz"
sha256 "db36ae0b2e2693253bffa6301474c743a7982d57f7b96f604a521efdc0804a92"
url "https://github.com/jittering/vproxy/releases/download/v0.12.3/vproxy_darwin_amd64.tar.gz"
sha256 "e5ccd9067a2fa484f72cff0a16edfb6ca62a347bb58bea4b9eb0bc2d0ee7c5af"

def install
if build.head?
Expand All @@ -48,8 +48,8 @@ def install

on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/jittering/vproxy/releases/download/v0.12.2/vproxy_linux_arm64.tar.gz"
sha256 "a3d71a582f0b3295880c03150582b50325f665b88d77ad635270d244912010da"
url "https://github.com/jittering/vproxy/releases/download/v0.12.3/vproxy_linux_arm64.tar.gz"
sha256 "c94b172ddaa5c6e805a69ad29becb4ed25507c0823b12ee8cba0f0b9e4b84f17"

def install
if build.head?
Expand All @@ -64,8 +64,8 @@ def install
end
end
if Hardware::CPU.intel?
url "https://github.com/jittering/vproxy/releases/download/v0.12.2/vproxy_linux_amd64.tar.gz"
sha256 "dd531e37ce3368f416b85559af557e3481fd046b7fb700365f4623dc668887f6"
url "https://github.com/jittering/vproxy/releases/download/v0.12.3/vproxy_linux_amd64.tar.gz"
sha256 "489dc7d6b5bbda62211ac26f6a7d357c0608c67861beafa05a53f3026fb48d16"

def install
if build.head?
Expand Down Expand Up @@ -185,10 +185,9 @@ def caveats
end

service do
name "vproxy-head"
run ["#{bin}/vproxy", "daemon"]
keep_alive successful_exit: false
working_directory "#{var}"
working_dir "#{var}"
log_path "#{var}/log/vproxy.log"
error_log_path "#{var}/log/vproxy.log"
end
Expand Down

0 comments on commit eaf5647

Please sign in to comment.