homebrew-cask/Casks/marked.rb

27 lines
1.1 KiB
Ruby

cask 'marked' do
version '2.5.35978'
sha256 '219f980cfd0aea673ac57f0a8533bf40d06d46c8a2005a6d1ce44bd8c3feb29f'
url "https://updates.marked2app.com/Marked#{version}.dmg"
appcast 'https://updates.marked2app.com/marked.xml'
name 'Marked'
homepage 'https://marked2app.com/'
auto_updates true
depends_on macos: '>= :yosemite'
app "Marked #{version.major}.app"
uninstall quit: "com.brettterpstra.marked#{version.major}"
zap trash: [
"~/Library/Application Support/Marked #{version.major}",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.brettterpstra.marked#{version.major}.sfl*",
"~/Library/Caches/Marked #{version.major}",
"~/Library/Caches/com.brettterpstra.marked#{version.major}",
"~/Library/Logs/Marked #{version.major}",
"~/Library/Preferences/com.brettterpstra.marked#{version.major}.plist",
"~/Library/Saved Application State/com.brettterpstra.marked#{version.major}.savedState",
]
end