cask "alfred" do version "4.3,1205" sha256 "eca6e890f736b61c339d20e90ccb9b741141bdf05eb4f7695a371f23eceb6cb4" url "https://cachefly.alfredapp.com/Alfred_#{version.before_comma}_#{version.after_comma}.dmg" name "Alfred" desc "Application launcher and productivity software" homepage "https://www.alfredapp.com/" livecheck do url "https://www.alfredapp.com/app/update#{version.major}/general.xml" strategy :page_match do |page| match = page.match(/Alfred_(\d(?:\.\d+)*)_(\d+)\.tar\.gz/i) "#{match[1]},#{match[2]}" end end auto_updates true app "Alfred #{version.major}.app" uninstall quit: "com.runningwithcrayons.Alfred" zap trash: [ "~/Library/Application Support/Alfred", "~/Library/Caches/com.runningwithcrayons.Alfred", "~/Library/Preferences/com.runningwithcrayons.Alfred.plist", "~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist", "~/Library/Saved Application State/com.runningwithcrayons.Alfred-Preferences.savedState", ] end