cask "activitywatch@beta" do arch arm: "arm64", intel: "x86_64" version "0.14.1" sha256 arm: "225916c1e641151638a062c796743ea21ba29c5d1bc162d84fc5591473d822db", intel: "d10abf59d0c86a4cbf137b455326201b4fc6691a84d63b47c58779c90e1169ff" url "https://github.com/ActivityWatch/activitywatch/releases/download/v#{version}/activitywatch-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@experimental", ] 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