cask "twingate" do version "2026.259.28406" sha256 "7214fc1b81c17c23369c4bd209bee915ceec42396cff87c485d1fb2970f0da8a" url "https://binaries.twingate.com/client/macos/#{version}/Twingate.pkg" name "Twingate" desc "Zero trust network access platform" homepage "https://twingate.com/" livecheck do url "https://www.twingate.com/changelog/clients" regex(%r{/macos/v?(\d+(?:\.\d+)+)/Twingate\.pkg}i) end auto_updates true depends_on macos: :monterey pkg "Twingate.pkg" uninstall launchctl: "com.twingate.macos.launcher", quit: "com.twingate.macos", login_item: "Twingate Launcher.app", pkgutil: "com.twingate.macos" zap script: { executable: "networksetup", args: ["-deletepppoeservice", "Twingate"], must_succeed: false, }, trash: [ "~/Library/Application Scripts/6GX8KVTR9H.com.twingate", "~/Library/Application Scripts/group.com.twingate", "~/Library/Containers/com.twingate.macos", "~/Library/Containers/com.twingate.macos.tunnelprovider", "~/Library/Group Containers/6GX8KVTR9H.com.twingate", "~/Library/Group Containers/group.com.twingate", "~/Library/Preferences/com.twingate.macos.plist", ] end