mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
38 lines
1.2 KiB
Ruby
38 lines
1.2 KiB
Ruby
cask "cursor" do
|
|
arch arm: "arm64", intel: "x64"
|
|
|
|
version "0.18.4,2312033zjv5fqai"
|
|
sha256 arm: "b80a67399f85fa2e3217793c63fd979022efc7eda676e8512cc7681bceb9e865",
|
|
intel: "1a093ddfd3f9d3f66e29944bf8dc89c28f2afbf6f5b671a9f77b7d8f05b4b84d"
|
|
|
|
url "https://download.todesktop.com/230313mzl4w4u92/Cursor%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip",
|
|
verified: "download.todesktop.com/230313mzl4w4u92/"
|
|
name "Cursor"
|
|
desc "Write, edit, and chat about your code with AI"
|
|
homepage "https://www.cursor.so/"
|
|
|
|
livecheck do
|
|
url "https://download.todesktop.com/230313mzl4w4u92/latest-mac.yml"
|
|
regex(/Build[ ._-]([^-]+)[._-]/i)
|
|
strategy :electron_builder do |item, regex|
|
|
build = item["files"].first["url"][regex, 1]
|
|
next if build.blank?
|
|
|
|
"#{item["version"]},#{build}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :catalina"
|
|
|
|
app "Cursor.app"
|
|
|
|
zap trash: [
|
|
"~/cursor-tutor",
|
|
"~/Library/Application Support/Cursor",
|
|
"~/Library/Logs/Cursor",
|
|
"~/Library/Preferences/com.todesktop.*",
|
|
"~/Library/Saved Application State/todesktop.com.ToDesktop-Installer.savedState",
|
|
]
|
|
end
|