cask "brave-browser@nightly" do arch arm: "arm64", intel: "x64" folder = on_arch_conditional arm: "nightly-arm64", intel: "nightly" on_arm do version "1.75.18.0" sha256 "13b208e012876a1d5da07a7e33251bc625f7cfb6125a71cd06ef2eb0481f0dd3" end on_intel do version "1.75.15.0" sha256 "7efd455bb70a004eec91c3798d87c7c0ff13876ad3b610a60480e4157eef16c5" end url "https://updates-cdn.bravesoftware.com/sparkle/Brave-Browser/#{folder}/#{version.major_minor_patch.sub(".", "")}/Brave-Browser-Nightly-#{arch}.dmg", verified: "updates-cdn.bravesoftware.com/sparkle/Brave-Browser/" name "Brave Nightly" desc "Web browser focusing on privacy" homepage "https://brave.com/download-nightly/" livecheck do url "https://updates.bravesoftware.com/sparkle/Brave-Browser/#{folder}/appcast.xml" strategy :sparkle, &:short_version end auto_updates true depends_on macos: ">= :big_sur" app "Brave Browser Nightly.app" zap trash: [ "~/Library/Application Support/BraveSoftware/Brave-Browser-Nightly", "~/Library/Caches/BraveSoftware/Brave-Browser-Nightly", "~/Library/Caches/com.brave.Browser.nightly", "~/Library/HTTPStorages/com.brave.Browser.nightly", "~/Library/Preferences/com.brave.Browser.nightly.plist", "~/Library/Saved Application State/com.brave.Browser.nightly.savedState", ], rmdir: [ "~/Library/Application Support/BraveSoftware", "~/Library/Caches/BraveSoftware", ] end