Files

38 lines
1.2 KiB
Ruby
Raw Permalink Normal View History

2023-03-30 18:45:53 -04:00
cask "cursor" do
2023-05-07 16:27:13 +08:00
arch arm: "arm64", intel: "x64"
2023-03-30 18:45:53 -04:00
2023-12-04 14:01:31 -05:00
version "0.18.4,2312033zjv5fqai"
sha256 arm: "b80a67399f85fa2e3217793c63fd979022efc7eda676e8512cc7681bceb9e865",
intel: "1a093ddfd3f9d3f66e29944bf8dc89c28f2afbf6f5b671a9f77b7d8f05b4b84d"
2023-05-07 16:27:13 +08:00
2023-10-09 14:38:39 +11:00
url "https://download.todesktop.com/230313mzl4w4u92/Cursor%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip",
2023-09-26 12:35:35 +08:00
verified: "download.todesktop.com/230313mzl4w4u92/"
2023-03-30 18:45:53 -04:00
name "Cursor"
desc "Write, edit, and chat about your code with AI"
homepage "https://www.cursor.so/"
livecheck do
2023-05-07 16:27:13 +08:00
url "https://download.todesktop.com/230313mzl4w4u92/latest-mac.yml"
2023-10-09 14:38:39 +11:00
regex(/Build[ ._-]([^-]+)[._-]/i)
strategy :electron_builder do |item, regex|
build = item["files"].first["url"][regex, 1]
next if build.blank?
"#{item["version"]},#{build}"
end
2023-03-30 18:45:53 -04:00
end
2023-05-07 16:27:13 +08:00
auto_updates true
2023-03-30 18:45:53 -04:00
depends_on macos: ">= :catalina"
2023-05-07 16:27:13 +08:00
app "Cursor.app"
2023-03-30 18:45:53 -04:00
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