cask "opera-gx" do version "114.0.5282.202" sha256 "eec4b1c8564c3a8f1a7b7432ba4502f3cf346b40a92fe666a91f5b1ca37ec5e0" url "https://get.geo.opera.com/pub/opera_gx/#{version}/mac/Opera_GX_#{version}_Setup.dmg" name "Opera GX" desc "Alternate version of the Opera web browser to complement gaming" homepage "https://www.opera.com/gx" livecheck do url "https://ftp.opera.com/pub/opera_gx/" regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i) end auto_updates true depends_on macos: ">= :catalina" app "Opera GX.app" zap trash: [ "~/Library/Application Support/com.operasoftware.OperaGX", "~/Library/Caches/com.operasoftware.Installer.OperaGX", "~/Library/Caches/com.operasoftware.OperaGX", "~/Library/Cookies/com.operasoftware.OperaGX.binarycookies", "~/Library/HTTPStorages/com.operasoftware.Installer.OperaGX", "~/Library/Preferences/com.operasoftware.OperaGX.plist", "~/Library/Saved Application State/com.operasoftware.OperaGX.savedState", ] end