35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
cask "alfred" do
|
|
version "4.6.1,1274"
|
|
sha256 "2851a6da00e8ad85bb000931a1d9dbda00d27402d4e3b7c8fbd77d8956b009b3"
|
|
|
|
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)
|
|
next if match.blank?
|
|
|
|
"#{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/Cookies/com.runningwithcrayons.Alfred.binarycookies",
|
|
"~/Library/Preferences/com.runningwithcrayons.Alfred.plist",
|
|
"~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist",
|
|
"~/Library/Saved Application State/com.runningwithcrayons.Alfred-Preferences.savedState",
|
|
]
|
|
end
|