cask "wrike" do version "4.4.3" sha256 "1db6defdbe85e0adc7a2baae27415bb4dd4bcdaef12267a10d2aee7e50dd480b" url "https://dl.wrike.com/download/WrikeDesktopApp.v#{version}.dmg" name "Wrike" desc "Project management app" homepage "https://www.wrike.com/apps/mobile-and-desktop/desktop-app/" livecheck do url "https://www.wrike.com/frontend/electron-app/changelog.json" regex(/^v?(\d+(?:\.\d+)+)(?:$|\s*\(for\s+Mac)/i) strategy :json do |json, regex| json.map do |item| match = item["version"]&.match(regex) next if match.blank? match[1] end end end app "Wrike for Mac.app" zap trash: [ "~/Library/Application Support/Wrike", "~/Library/Logs/Wrike", "~/Library/Preferences/com.wrike.Wrike.plist", "~/Library/Saved Application State/com.wrike.Wrike.savedState", ] caveats do requires_rosetta end end