Files

35 lines
1.1 KiB
Ruby

cask "clashx-meta" do
version "1.4.38"
sha256 "2639f0770c8adccfe2aac723d218e33b0a87f9950e1cb03432708d3e00d3e0d3"
url "https://github.com/MetaCubeX/ClashX.Meta/releases/download/v#{version}/ClashX.Meta.zip"
name "ClashX Meta"
desc "Rule-based custom proxy with GUI based on Clash.Meta"
homepage "https://github.com/MetaCubeX/ClashX.Meta"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
depends_on macos: :monterey
app "ClashX Meta.app"
uninstall launchctl: "com.metacubex.ClashX.ProxyConfigHelper",
quit: "com.metacubex.ClashX.meta",
delete: [
"/Library/LaunchDaemons/com.metacubex.ClashX.ProxyConfigHelper.plist",
"/Library/PrivilegedHelperTools/com.metacubex.ClashX.ProxyConfigHelper",
]
zap trash: [
"~/Library/Application Support/com.metacubex.ClashX.meta",
"~/Library/Caches/com.metacubex.ClashX.meta",
"~/Library/HTTPStorages/com.metacubex.ClashX.meta",
"~/Library/Logs/ClashX Meta",
"~/Library/Preferences/com.metacubex.ClashX.meta.plist",
]
end