excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / windsurf.rb
blobbbb851d6bc81fcf0ee08614590a757b844078f66
1 cask "windsurf" do
2   arch arm: "arm64", intel: "x64"
4   version "1.0.5,d33d40f6cd3a4d7e451b22e94359230a4aa8c161"
5   sha256 arm:   "706541a254753cb7ba8d371fa39753ca7075cda2917907da46fe535bb209e304",
6          intel: "622d68b0df1427e41211031db53b2231976359d5099c7346e4028f72a95e202b"
8   url "https://windsurf-stable.codeiumdata.com/darwin-#{arch}-dmg/stable/#{version.csv.second}/Windsurf-darwin-#{arch}-#{version.csv.first}.dmg",
9       verified: "windsurf-stable.codeiumdata.com/"
10   name "Windsurf"
11   desc "Agentic IDE powered by AI Flow paradigm"
12   homepage "https://www.codeium.com/windsurf"
14   livecheck do
15     url "https://windsurf-stable.codeium.com/api/update/darwin-#{arch}-dmg/stable/latest"
16     strategy :json do |json|
17       version = json["windsurfVersion"]
18       hash = json["version"]
19       next if version.blank? || hash.blank?
21       "#{version},#{hash}"
22     end
23   end
25   auto_updates true
26   depends_on macos: ">= :catalina"
28   app "Windsurf.app"
29   binary "#{appdir}/Windsurf.app/Contents/Resources/app/bin/windsurf"
31   uninstall launchctl: "com.exafunction.windsurf.ShipIt",
32             quit:      "com.exafunction.windsurf"
34   zap trash: [
35     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.exafunction.windsurf.sfl*",
36     "~/Library/Application Support/Windsurf",
37     "~/Library/Caches/com.exafunction.windsurf",
38     "~/Library/Caches/com.exafunction.windsurf.ShipIt",
39     "~/Library/HTTPStorages/com.exafunction.windsurf",
40     "~/Library/Preferences/com.exafunction.windsurf.plist",
41     "~/Library/Saved Application State/com.exafunction.windsurf.savedState",
42   ]
43 end