Files
homebrew-cask/Casks/o/opera.rb
2023-12-05 15:34:35 +00:00

27 lines
776 B
Ruby

cask "opera" do
version "105.0.4970.34"
sha256 "9cbf8c082d55d08ccc30f8d0cb3059db545ac6adde8caecaf695079a1067d234"
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
app "Opera.app"
zap trash: [
"~/Library/Application Support/com.operasoftware.Opera",
"~/Library/Caches/com.operasoftware.Installer.Opera",
"~/Library/Caches/com.operasoftware.Opera",
"~/Library/Preferences/com.operasoftware.Opera.plist",
"~/Library/Saved Application State/com.operasoftware.Opera.savedState",
]
end