3 sha256 "e71f606717712eabb06e1cf0c643302f8d52d339d227367a16ca519883d4bd00"
5 url "https://github.com/alibaba/lightproxy/releases/download/v#{version}/LightProxy-#{version}.dmg",
6 verified: "github.com/alibaba/lightproxy/"
8 desc "Proxy & Debug tools based on whistle with Chrome Devtools UI"
9 homepage "https://alibaba.github.io/lightproxy/"
13 uninstall_postflight do
14 stdout, * = system_command "/usr/bin/security",
15 args: ["find-certificate", "-a", "-c", "LightProxy", "-Z"],
17 hashes = stdout.lines.grep(/^SHA-256 hash:/) { |l| l.split(":").second.strip }
19 system_command "/usr/bin/security",
20 args: ["delete-certificate", "-Z", h],