cask "activitywatch@experimental" do arch arm: "arm64", intel: "x86_64" version "0.14.1" sha256 arm: "0bfd055cd369681d796f86049b08870239fcd10833702109dee8343b0b6db1c0", intel: "02f49e474f5df019e559bb6f795ef545841f6b0dd0d047b18c6a4a9a8cbeb8bc" url "https://github.com/ActivityWatch/activitywatch/releases/download/v#{version}/activitywatch-tauri-v#{version}-macos-#{arch}.dmg" name "ActivityWatch" desc "Time tracker" homepage "https://activitywatch.net/" livecheck do url :url regex(/^v?(\d+(?:\.\d+)+(?:b\d+)?)$/i) strategy :github_releases do |json, regex| json.map do |release| next if release["draft"] match = release["tag_name"]&.match(regex) next if match.blank? match[1] end end end conflicts_with cask: [ "activitywatch", "activitywatch@beta", ] depends_on macos: :monterey app "ActivityWatch.app" uninstall quit: "net.activitywatch.ActivityWatch" zap trash: [ "~/Library/Application Support/activitywatch", "~/Library/Caches/activitywatch", "~/Library/Caches/aw-watcher-window-macos", "~/Library/Caches/net.activitywatch.ActivityWatch", "~/Library/HTTPStorages/aw-watcher-window-macos", "~/Library/Logs/activitywatch", "~/Library/Preferences/net.activitywatch.ActivityWatch.plist", "~/Library/WebKit/net.activitywatch.ActivityWatch", ] end