cask "activitywatch" do version "0.13.2" sha256 "22f3bce0e169457902b2c8d2967701cde887171f737d281dd414a210bd3090ed" url "https://github.com/ActivityWatch/activitywatch/releases/download/v#{version}/activitywatch-v#{version}-macos-x86_64.dmg", verified: "github.com/ActivityWatch/activitywatch/" name "ActivityWatch" desc "Time tracker" homepage "https://activitywatch.net/" livecheck do url "https://activitywatch.net/downloads/" regex(/href=.*?activitywatch[._-]v?(\d+(?:\.\d+)+)-macos-x86_64\.dmg/i) end app "ActivityWatch.app" zap trash: [ "~/Library/Application Support/activitywatch", "~/Library/Caches/activitywatch", "~/Library/Logs/activitywatch", ] caveats do requires_rosetta end end