From 46c47e73aad0dd3b29f0209323f1fb91ce1241a1 Mon Sep 17 00:00:00 2001 From: Alexander Cai Date: Thu, 23 Mar 2023 02:38:31 -0400 Subject: [PATCH 01/10] Add Cursor.app v0.1.3 from https://www.cursor.so/ --- Casks/cursor.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Casks/cursor.rb diff --git a/Casks/cursor.rb b/Casks/cursor.rb new file mode 100644 index 000000000000..744d5d6286f1 --- /dev/null +++ b/Casks/cursor.rb @@ -0,0 +1,15 @@ +cask "cursor" do + version "0.1.3" + sha256 :no_check + + url "https://dl.todesktop.com/230313mzl4w4u92/mac/installer/universal", + verified: "dl.todesktop.com/230313mzl4w4u92" + name "Cursor" + desc "Build Software. Fast. Write, edit, and chat about your code with a powerful AI" + homepage "https://www.cursor.so/" + + installer script: "Install Cursor.app/Contents/MacOS/ToDesktop Installer" + + uninstall quit: "com.todesktop.230313mzl4w4u92", + delete: "/Applications/Cursor.app/" +end From 30bdc59b158c5ebd766c8c058ee622d370e9ae89 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Thu, 23 Mar 2023 23:43:54 +0800 Subject: [PATCH 02/10] Update Casks/cursor.rb Co-authored-by: Sean Molenaar --- Casks/cursor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index 744d5d6286f1..e5f74b46a364 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -5,7 +5,7 @@ url "https://dl.todesktop.com/230313mzl4w4u92/mac/installer/universal", verified: "dl.todesktop.com/230313mzl4w4u92" name "Cursor" - desc "Build Software. Fast. Write, edit, and chat about your code with a powerful AI" + desc "Write, edit, and chat about your code with AI" homepage "https://www.cursor.so/" installer script: "Install Cursor.app/Contents/MacOS/ToDesktop Installer" From 228ca9b293da4f1450ae7ca89fc9e09d97d3344b Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Thu, 23 Mar 2023 23:53:48 +0800 Subject: [PATCH 03/10] Update cursor.rb --- Casks/cursor.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index e5f74b46a364..8d9ff92b2bab 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -3,11 +3,13 @@ sha256 :no_check url "https://dl.todesktop.com/230313mzl4w4u92/mac/installer/universal", - verified: "dl.todesktop.com/230313mzl4w4u92" + verified: "dl.todesktop.com/230313mzl4w4u92/mac/installer/" name "Cursor" desc "Write, edit, and chat about your code with AI" homepage "https://www.cursor.so/" + depends_on macos: ">= :catalina" + installer script: "Install Cursor.app/Contents/MacOS/ToDesktop Installer" uninstall quit: "com.todesktop.230313mzl4w4u92", From 826bc54c07bdf1642800d933a778d12260a48174 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Fri, 24 Mar 2023 00:58:46 +0800 Subject: [PATCH 04/10] Update cursor.rb --- Casks/cursor.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index 8d9ff92b2bab..806ba2edfdf1 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -8,6 +8,12 @@ desc "Write, edit, and chat about your code with AI" homepage "https://www.cursor.so/" + livecheck do + url "https://raw.githubusercontent.com/getcursor/cursor/main/package.json" + regex(/"Cursor",\n\s*"version":\s"(\d+(?:\.\d+)+)"/i) + strategy :page_match + end + depends_on macos: ">= :catalina" installer script: "Install Cursor.app/Contents/MacOS/ToDesktop Installer" From cf15dcf0661c311f92ea3631a71b7dda0ae180e9 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Fri, 24 Mar 2023 01:10:41 +0800 Subject: [PATCH 05/10] Update cursor.rb --- Casks/cursor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index 806ba2edfdf1..e7a6336844d5 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -1,5 +1,5 @@ cask "cursor" do - version "0.1.3" + version "0.1.4" sha256 :no_check url "https://dl.todesktop.com/230313mzl4w4u92/mac/installer/universal", From d6dc6afc97c06ceccd75d2a369eea02dc67f8af5 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Sun, 26 Mar 2023 10:25:08 +0800 Subject: [PATCH 06/10] Update Casks/cursor.rb Co-authored-by: Markus Reiter --- Casks/cursor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index e7a6336844d5..65aec8a36dd1 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -19,5 +19,5 @@ installer script: "Install Cursor.app/Contents/MacOS/ToDesktop Installer" uninstall quit: "com.todesktop.230313mzl4w4u92", - delete: "/Applications/Cursor.app/" + delete: "/Applications/Cursor.app" end From fd58a6487e40f1fc15a53eb1cb7f9c64602d8d16 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Sun, 26 Mar 2023 10:25:17 +0800 Subject: [PATCH 07/10] Update Casks/cursor.rb Co-authored-by: Markus Reiter --- Casks/cursor.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index 65aec8a36dd1..f4591d33e796 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -10,8 +10,9 @@ livecheck do url "https://raw.githubusercontent.com/getcursor/cursor/main/package.json" - regex(/"Cursor",\n\s*"version":\s"(\d+(?:\.\d+)+)"/i) - strategy :page_match + strategy :json do |json| + json["version"] + end end depends_on macos: ">= :catalina" From 15e38b5c857c6de5a69cdc6ffd30b83c91556b39 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Sun, 26 Mar 2023 10:33:28 +0800 Subject: [PATCH 08/10] Update cursor.rb --- Casks/cursor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index f4591d33e796..dc9c6f0b1ff4 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -1,5 +1,5 @@ cask "cursor" do - version "0.1.4" + version "0.1.7" sha256 :no_check url "https://dl.todesktop.com/230313mzl4w4u92/mac/installer/universal", From 1e2ce29b69e47a8f650d51bb9f2ee7d5194d9efd Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Thu, 30 Mar 2023 18:16:20 -0400 Subject: [PATCH 09/10] update version and add zap --- Casks/cursor.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index dc9c6f0b1ff4..2d2c9971434f 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -1,5 +1,5 @@ cask "cursor" do - version "0.1.7" + version "0.1.11" sha256 :no_check url "https://dl.todesktop.com/230313mzl4w4u92/mac/installer/universal", @@ -21,4 +21,12 @@ uninstall quit: "com.todesktop.230313mzl4w4u92", delete: "/Applications/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 From ab733dd6e6aeec024853c18951a49109f3b33f1b Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 31 Mar 2023 00:40:28 +0200 Subject: [PATCH 10/10] Update cursor.rb --- Casks/cursor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/cursor.rb b/Casks/cursor.rb index 2d2c9971434f..3e9ba5f2c799 100644 --- a/Casks/cursor.rb +++ b/Casks/cursor.rb @@ -27,6 +27,6 @@ "~/Library/Application Support/Cursor", "~/Library/Logs/Cursor", "~/Library/Preferences/com.todesktop.*", - "~/Library/Saved Application State/todesktop.com.ToDesktop-Installer.savedState/", + "~/Library/Saved Application State/todesktop.com.ToDesktop-Installer.savedState", ] end