cask 'marked' do version '2.5.23958' sha256 '9e06cecaadcade4ba25298fd0f0ff2f0837808a5d8d55cc7e6e41e2aa1a1b113' url "https://updates.marked2app.com/Marked#{version}.zip" appcast 'https://updates.marked2app.com/marked.xml' name 'Marked' homepage 'http://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