Merge pull request #198952 from Homebrew/bump-vienna-assistant-1.2.483
[Homebrew/homebrew-cask.git] / Casks / m / macdown.rb
blob78dc45c3aae1efca3f003bb04abe2a2b6e28ef6d
1 cask "macdown" do
2   version "0.7.2"
3   sha256 "271f11eb64c19fccee2615e092067cdecc29adf0c2ed0703dae9acda8fa0a672"
5   url "https://github.com/MacDownApp/macdown/releases/download/v#{version}/MacDown.app.zip",
6       verified: "github.com/MacDownApp/macdown/"
7   name "MacDown"
8   desc "Open-source Markdown editor"
9   homepage "https://macdown.uranusjr.com/"
11   livecheck do
12     url "https://macdown.uranusjr.com/sparkle/macdown/stable/appcast.xml"
13     strategy :sparkle do |item|
14       # 0.7.3 has a known issue, so wait for the next version.
15       # See https://github.com/MacDownApp/macdown/issues/1173.
16       next version if item.short_version == "0.7.3"
18       item.short_version
19     end
20   end
22   auto_updates true
24   app "MacDown.app"
25   binary "#{appdir}/MacDown.app/Contents/SharedSupport/bin/macdown"
27   zap trash: [
28     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.uranusjr.macdown.sfl*",
29     "~/Library/Application Support/MacDown",
30     "~/Library/Caches/com.uranusjr.macdown",
31     "~/Library/Cookies/com.uranusjr.macdown.binarycookies",
32     "~/Library/Preferences/com.uranusjr.macdown.plist",
33     "~/Library/Saved Application State/com.uranusjr.macdown.savedState",
34     "~/Library/WebKit/com.uranusjr.macdown",
35   ]
37   caveats do
38     requires_rosetta
39   end
40 end