cask "emclient" do version "10.3.2412" sha256 "e302519d0137d86aed2f3fc53dffdf6680fab86b56dd649859f8208375ad8b26" url "https://cdn-dist.emclient.com/dist/v#{version}_Mac/setup.pkg" name "eM Client" desc "Email client" homepage "https://www.emclient.com/" livecheck do url "https://www.emclient.com/dist/latest/setup.pkg" regex(/v?(\d+(?:\.\d+)+)[._-]Mac/i) strategy :header_match end auto_updates true conflicts_with cask: "emclient@beta" depends_on macos: ">= :big_sur" pkg "setup.pkg" uninstall pkgutil: "com.emclient.mail.client.pkg", delete: "/Applications/eM Client.app" zap trash: [ "~/Library/Caches/com.emclient.mail.client", "~/Library/Preferences/com.emclient.mail.*.plist", "~/Library/Saved Application State/com.emclient.mail.client.savedState", ] end