cask "avast-secure-browser" do arch arm: "arm", intel: "x64" livecheck_arch = on_arch_conditional arm: "-arm" on_arm do version "137.0.6498.104" sha256 "eb4f3ea8c4bc6da08f29197acfc76f33503bdd9d299f87179e1be2b8b0a69daa" end on_intel do version "137.0.6500.104" sha256 "7da0a17f8c13ec612f2b87cd20754449cac30e9eef812734bea8cf1c8c8d7deb" end url "https://cdn-update.avast.securebrowser.com/browser/mac/#{arch}/#{version}/AvastSecureBrowser.dmg", verified: "cdn-update.avast.securebrowser.com/browser/mac/" name "Avast Secure Browser" desc "Web browser focusing on privacy" homepage "https://www.avast.com/secure-browser#mac" livecheck do url "https://update.avastbrowser.com/sparkle/browser#{livecheck_arch}/appcast.xml" strategy :sparkle end auto_updates true depends_on macos: ">= :big_sur" app "Avast Secure Browser.app" zap trash: [ "~/Library/Application Support/AVAST Software/Browser", "~/Library/Caches/AVAST Software/Browser", "~/Library/Caches/com.avast.browser", "~/Library/Preferences/com.avast.AvastSecureBrowser.plist", "~/Library/Preferences/com.avast.browser.plist", "~/Library/Saved Application State/com.avast.browser.savedState", ], rmdir: [ "~/Library/Application Support/AVAST Software", "~/Library/Caches/AVAST Software", ] end