32 lines
1020 B
Ruby
32 lines
1020 B
Ruby
cask "whatroute" do
|
|
version "2.3.5,11762"
|
|
sha256 "363c157e7b1d4968bdaf5f8456ba336d1723595dcc16526d75378ca19ed4ff0a"
|
|
|
|
url "https://downloads.whatroute.net/software/whatroute-#{version.before_comma}.zip"
|
|
name "WhatRoute"
|
|
desc "Network diagnostic utility"
|
|
homepage "https://www.whatroute.net/"
|
|
|
|
livecheck do
|
|
url "https://www.whatroute.net/whatroute#{version.major}appcast.xml"
|
|
strategy :sparkle
|
|
end
|
|
|
|
depends_on macos: ">= :yosemite"
|
|
|
|
app "WhatRoute.app"
|
|
|
|
uninstall delete: "/Library/PrivilegedHelperTools/net.whatroute.whatroute#{version.major}helper",
|
|
launchctl: [
|
|
"net.whatroute.LaunchHelper",
|
|
"net.whatroute.whatroute#{version.major}helper",
|
|
],
|
|
quit: "net.whatroute.whatroute#{version.major}"
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/net.whatroute.whatroute#{version.major}",
|
|
"~/Library/Logs/net.whatroute.whatroute#{version.major}",
|
|
"~/Library/Preferences/net.whatroute.whatroute#{version.major}.plist",
|
|
]
|
|
end
|