44 lines
1.6 KiB
Ruby
44 lines
1.6 KiB
Ruby
cask "proxyman" do
|
|
version "2.5.2"
|
|
sha256 "b88e590fa4318ea67cc14d3da5dda3793f9b1e762011e799f3b3cec8587c7b2c"
|
|
|
|
# github.com/ProxymanApp/Proxyman/ was verified as official when first introduced to the cask
|
|
url "https://github.com/ProxymanApp/Proxyman/releases/download/#{version}/Proxyman_#{version}.dmg"
|
|
appcast "https://github.com/ProxymanApp/Proxyman/releases.atom"
|
|
name "Proxyman"
|
|
homepage "https://proxyman.io/"
|
|
|
|
auto_updates true
|
|
|
|
app "Proxyman.app"
|
|
|
|
uninstall_postflight do
|
|
stdout, * = system_command "/usr/bin/security",
|
|
args: ["find-certificate", "-a", "-c", "Proxyman", "-Z"],
|
|
sudo: true
|
|
hashes = stdout.lines.grep(/^SHA-256 hash:/) { |l| l.split(":").second.strip }
|
|
hashes.each do |h|
|
|
system_command "/usr/bin/security",
|
|
args: ["delete-certificate", "-Z", h],
|
|
sudo: true
|
|
end
|
|
end
|
|
|
|
uninstall quit: "com.proxyman.NSProxy",
|
|
launchctl: "com.proxyman.NSProxy.HelperTool",
|
|
delete: "/Library/PrivilegedHelperTools/com.proxyman.NSProxy.HelperTool"
|
|
|
|
zap trash: [
|
|
"~/.proxyman*",
|
|
"~/Library/Application Support/com.proxyman",
|
|
"~/Library/Application Support/com.proxyman.NSProxy",
|
|
"~/Library/Caches/Proxyman",
|
|
"~/Library/Caches/com.proxyman.NSProxy",
|
|
"~/Library/Cookies/com.proxyman.binarycookies",
|
|
"~/Library/Cookies/com.proxyman.NSProxy.binarycookies",
|
|
"~/Library/Preferences/com.proxyman.plist",
|
|
"~/Library/Preferences/com.proxyman.NSProxy.plist",
|
|
"~/Library/Saved Application State/com.proxyman.NSProxy.savedState",
|
|
]
|
|
end
|