cask "electrum" do version "4.5.8" sha256 "7ac3d44dca727dc028d8819ef28350b705600fa706a189db956d2e3725a65e0d" url "https://download.electrum.org/#{version}/electrum-#{version}.dmg" name "Electrum" desc "Bitcoin thin client" homepage "https://electrum.org/" livecheck do url "https://electrum.org/#download" regex(/href=.*?electrum[._-]v?(\d+(?:\.\d+)+)\.dmg/i) end depends_on macos: ">= :high_sierra" app "Electrum.app" zap trash: [ "~/.electrum", "~/Library/Preferences/Electrum.plist", "~/Library/Preferences/org.org.pythonmac.unspecified.Electrum.plist", "~/Library/Saved Application State/Electrum.savedState", ] caveats do requires_rosetta end end