cask "timing" do version "2024.5.1" sha256 "02983e993308b7fdbf07c866bcbaeb91ddfa5ab562e687482f118279897228f7" url "https://updates.timingapp.com/download/Timing-#{version}.dmg" name "Timing" name "Timing 2" desc "Automatic time and productivity tracking app" homepage "https://timingapp.com/" # Some items in the Sparkle feed may not have a pubDate, so it's necessary to # work with all of the items in the feed (not just the newest one). livecheck do url "https://updates.timingapp.com/updates/timing2.xml" regex(/Timing[._-]v?(\d+(?:\.\d+)+)\.dmg/i) strategy :sparkle do |items, regex| items.map { |item| item.url[regex, 1] } end end auto_updates true depends_on macos: ">= :catalina" app "Timing.app" uninstall login_item: "TimingHelper" zap trash: [ "~/Library/Application Support/info.eurocomp.Timing2", "~/Library/Application Support/info.eurocomp.TimingHelper", "~/Library/Application Support/info.eurocomp.TimingHelper.InfoExtractorService", "~/Library/Caches/info.eurocomp.Timing2", "~/Library/Caches/info.eurocomp.TimingHelper", "~/Library/Caches/info.eurocomp.TimingHelper.InfoExtractorService", "~/Library/Preferences/info.eurocomp.Timing2.plist", "~/Library/Preferences/info.eurocomp.TimingHelper.InfoExtractorService.plist", "~/Library/Preferences/info.eurocomp.TimingHelper.plist", ] end