cask "vnc-viewer" do version "7.12.1" sha256 "4a2065c3d8a12832c35813d4c67ddc7ccd236d46960f143d24369e0cd73343b7" url "https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-#{version}-MacOSX-universal.dmg" name "Real VNC Viewer" desc "Remote desktop application focusing on security" homepage "https://www.realvnc.com/" livecheck do url "https://www.realvnc.com/en/connect/download/viewer/macos/" regex(%r{href=.*?/VNC-Viewer-(\d+(?:\.\d+)+)-MacOSX-universal\.dmg}i) end app "VNC Viewer.app" zap trash: [ "~/Library/Preferences/com.realvnc.vncviewer.plist", "~/Library/Saved Application State/com.realvnc.vncviewer.savedState", ] end