cask "todesk" do version "4.7.2.1" sha256 "cba50ad3b10523f71175953d4606d3daf122d344dd1e5f130fd190a93ba509e8" url "https://dl.todesk.com/macos/ToDesk_#{version}.pkg", user_agent: :fake, referer: "https://www.todesk.com/" name "ToDesk" desc "Remote control software" homepage "https://www.todesk.com/" disable! date: "2024-08-01", because: "download artifact behind CAPTCHA-verified url" auto_updates true pkg "ToDesk_#{version}.pkg" uninstall launchctl: [ "com.youqu.todesk.client.startup", "com.youqu.todesk.desktop", "com.youqu.todesk.service", "com.youqu.todesk.startup", ], quit: "com.youqu.todesk.mac", pkgutil: "com.youqu.todesk.mac", delete: "/Applications/ToDesk.app" zap trash: [ "~/Library/Application Scripts/com.youqu.todesk.mac.LaunchHelper", "~/Library/Containers/com.youqu.todesk.mac.LaunchHelper", "~/Library/Group Containers/group.youqu.todesk", "~/Library/Preferences/com.youqu.todesk.mac.plist", "~/Library/Saved Application State/com.youqu.todesk.mac.savedState", "~/Library/ToDesk", ] end