cask "thunder" do version "5.40.2.66331" sha256 "5fb22363d26f79532f3553e57b177e6123a3eb7b0c5e1fc4fc1838c7d18eafb0" url "https://down.sandai.net/mac/thunder_#{version}.dmg", verified: "down.sandai.net/mac/" name "Thunder" name "迅雷" desc "VPN and WiFi proxy" homepage "https://www.xunlei.com/" livecheck do url "https://dl.xunlei.com" regex(/thunder[._-](\d+(?:\.\d+)+)\.dmg/i) end auto_updates true depends_on macos: ">= :high_sierra" app "Thunder.app" zap trash: [ "~/Library/Application Support/Thunder", "~/Library/Caches/com.xunlei.Thunder", "~/Library/Caches/com.xunlei.XLPlayer", "~/Library/Cookies/com.xunlei.Thunder.binarycookies", "~/Library/Preferences/com.xunlei.Thunder.loginSDK.plist", "~/Library/Preferences/com.xunlei.Thunder.plist", "~/Library/Preferences/com.xunlei.XLPlayer.plist", "~/Library/Saved Application State/com.xunlei.Thunder.savedState", "~/Library/Saved Application State/com.xunlei.XLPlayer.savedState", "~/Library/WebKit/com.xunlei.Thunder", ] end