excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / k / klokki.rb
blob44f99f299299de2ccdaeaf3cef6e3c1f2e9ad7c2
1 cask "klokki" do
2   version "1.3.7"
3   sha256 :no_check
5   url "https://klokki.com/download/Klokki.dmg"
6   name "Klokki"
7   desc "Automatic time-tracking solution"
8   homepage "https://klokki.com/"
10   # The dates in the appcast are sometimes out of order (i.e. a newer version
11   # may have an older `pubDate`), so we have to override the default `sparkle`
12   # strategy logic to identify the latest version in this case.
13   livecheck do
14     url "https://klokki.com/download/appcast.xml"
15     strategy :sparkle do |items|
16       items.map(&:short_version)
17     end
18   end
20   depends_on macos: ">= :high_sierra"
22   app "Klokki.app"
24   uninstall launchctl: "com.klokki-launcher",
25             quit:      "com.klokki-launcher"
27   zap trash: [
28     "~/Library/Application Scripts/com.klokki-launcher",
29     "~/Library/Application Support/com.klokki.macos",
30     "~/Library/Application Support/Klokki",
31     "~/Library/Caches/com.klokki.macos",
32     "~/Library/Containers/com.klokki-launcher",
33     "~/Library/HTTPStorages/com.klokki.macos",
34     "~/Library/HTTPStorages/com.klokki.macos.binarycookies",
35     "~/Library/Preferences/com.klokki.macos.plist",
36   ]
37 end