cask "windsurf" do arch arm: "arm64", intel: "x64" version "1.10.7,7c493d782a6cad0516e79f070d953687991df4ec" sha256 arm: "e4bf775715a422676bc82b4cba9dd63454e1c8a9f29cce6e9cf2a2116fe5e192", intel: "e01b3ad16c6580bb92aae86e323cb2af0153dcd9cd9ec51ed7e335c413c8d28d" url "https://windsurf-stable.codeiumdata.com/darwin-#{arch}-dmg/stable/#{version.csv.second}/Windsurf-darwin-#{arch}-#{version.csv.first}.dmg", verified: "windsurf-stable.codeiumdata.com/" name "Windsurf" desc "Agentic IDE powered by AI Flow paradigm" homepage "https://windsurf.com/editor" livecheck do url "https://windsurf-stable.codeium.com/api/update/darwin-#{arch}-dmg/stable/latest" strategy :json do |json| version = json["windsurfVersion"] hash = json["version"] next if version.blank? || hash.blank? "#{version},#{hash}" end end auto_updates true depends_on macos: ">= :catalina" app "Windsurf.app" binary "#{appdir}/Windsurf.app/Contents/Resources/app/bin/windsurf" uninstall launchctl: "com.exafunction.windsurf.ShipIt", quit: "com.exafunction.windsurf" zap trash: [ "~/.windsurf", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.exafunction.windsurf.sfl*", "~/Library/Application Support/Windsurf", "~/Library/Caches/com.exafunction.windsurf", "~/Library/Caches/com.exafunction.windsurf.ShipIt", "~/Library/HTTPStorages/com.exafunction.windsurf", "~/Library/Preferences/com.exafunction.windsurf.plist", "~/Library/Saved Application State/com.exafunction.windsurf.savedState", ] end