cask "opera@beta" do version "115.0.5322.58" sha256 "69abc62e7ab18a8b33f6ebb84f2190123f82b008a73a7153f66378d28fe0da17" url "https://get.geo.opera.com/pub/opera-beta/#{version}/mac/Opera_beta_#{version}_Setup.dmg" name "Opera Beta" desc "Web browser" homepage "https://www.opera.com/computer/beta" livecheck do url "https://get.geo.opera.com/pub/opera-beta/" regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i) end auto_updates true depends_on macos: ">= :big_sur" app "Opera Beta.app" zap trash: [ "~/Library/Application Support/com.operasoftware.OperaNext", "~/Library/Caches/com.operasoftware.Installer.OperaNext", "~/Library/Caches/com.operasoftware.OperaNext", "~/Library/Cookies/com.operasoftware.OperaNext.binarycookies", "~/Library/HTTPStorages/com.operasoftware.Installer.OperaNext", "~/Library/Preferences/com.operasoftware.OperaNext.plist", "~/Library/Saved Application State/com.operasoftware.OperaNext.savedState", ] end