cask "rewind" do version "15310.1,5f6bcc5" sha256 "cc422c5f1aff54b2948efb32f479ec1054f5eafb2b37d540511d226792e73318" url "https://updates.rewind.ai/builds/main/b#{version.csv.first}-main-#{version.csv.second}.zip" name "Rewind" desc "Record and search your screen and audio" homepage "https://www.rewind.ai/" livecheck do url "https://updates.rewind.ai/appcasts/main.xml" regex(/[._-](\w+)\.zip/i) strategy :sparkle do |item, regex| match = item.url.match(regex) next if match.blank? "#{item.version},#{match[1]}" end end auto_updates true depends_on macos: ">= :monterey" app "Rewind.app" uninstall quit: "com.memoryvault.MemoryVault" zap trash: [ "~/Documents/rewind_logs_*.zip", "~/Library/Application Support/com.memoryvault.MemoryVault", "~/Library/Caches/com.memoryvault.MemoryVault", "~/Library/HTTPStorages/com.memoryvault.MemoryVault", "~/Library/LaunchAgents/com.rewind.Rewind.plist", "~/Library/Logs/DiagnosticReports/Rewind_*.diag", "~/Library/Logs/Rewind", "~/Library/Preferences/com.memoryvault.MemoryVault.plist", "~/Library/WebKit/com.memoryvault.MemoryVault", ] end