cask "opera" do version "114.0.5282.185" sha256 "8aa571461e03ec323c054db1e1690b8a369f5bd56048cc009c6cc07955198586" url "https://get.geo.opera.com/pub/opera/desktop/#{version}/mac/Opera_#{version}_Setup.dmg" name "Opera" desc "Web browser" homepage "https://www.opera.com/" livecheck do url "https://ftp.opera.com/pub/opera/desktop/" regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i) end auto_updates true depends_on macos: ">= :catalina" app "Opera.app" zap trash: [ "~/Library/Application Support/com.operasoftware.Opera", "~/Library/Caches/com.operasoftware.Installer.Opera", "~/Library/Caches/com.operasoftware.Opera", "~/Library/Cookies/com.operasoftware.Opera.binarycookies", "~/Library/HTTPStorages/com.operasoftware.Installer.Opera", "~/Library/Preferences/com.operasoftware.Opera.plist", "~/Library/Saved Application State/com.operasoftware.Opera.savedState", ] end