cask "sync" do version "2.2.47" sha256 "e04bdea8a60ca119921ac7616767bbba29b92cf83844f777ea5c6c2c3f3c6261" url "https://www.sync.com/download/apple/Sync-#{version}.dmg" name "Sync" desc "Store, share and access files from anywhere" homepage "https://www.sync.com/" livecheck do url "https://www.sync.com/install/" regex(/href=.*?Sync[._-]v?(\d+(?:\.\d+)+)\.dmg/i) end app "Sync.app" uninstall quit: "com.sync.desktop" zap trash: [ "~/Library/Application Scripts/com.sync.desktop", "~/Library/Application Scripts/com.sync.desktop.findersync", "~/Library/Group Containers/com.sync.desktop", "~/Library/Preferences/com.sync.desktop.plist", ], rmdir: "~/Sync" end