cask "hubstaff" do version "1.6.28,8494" sha256 "38143d93d368658ad4ff0f6ebabd0bbd3b1af5aaca18d3085cdd6655c06c6bc7" url "https://app.hubstaff.com/download/#{version.csv.second}-standard-mac-os-x-#{version.csv.first.dots_to_hyphens}-release" name "Hubstaff" desc "Work time tracker" homepage "https://hubstaff.com/" livecheck do url "https://app.hubstaff.com/appcast.xml" strategy :sparkle do |item| "#{item.short_version.split("-").first},#{item.url[%r{/(\d+)(?:-standard)?-mac.*?-release}i, 1]}" end end app "Hubstaff.app" zap trash: [ "~/Library/Application Support/Hubstaff", "~/Library/Preferences/com.netsoft.Hubstaff.plist", ] caveats do requires_rosetta end end