From f79407b671568c03d366ed08fe9e121fe7126aad Mon Sep 17 00:00:00 2001 From: Tse Kit Yam Date: Thu, 18 Jan 2024 14:40:15 +0800 Subject: [PATCH 1/2] theia-ide 1.45.0 Co-authored-by: Bevan Kay --- Casks/t/theiaide.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Casks/t/theiaide.rb diff --git a/Casks/t/theiaide.rb b/Casks/t/theiaide.rb new file mode 100644 index 0000000000..d76494e7c0 --- /dev/null +++ b/Casks/t/theiaide.rb @@ -0,0 +1,21 @@ +cask "theiaide" do + version "1.45.0" + sha256 "51f15dc877b70f619fba62e0ac971a0f1ffda62491e8b2ca908efade46dedd93" + + url "https://download.eclipse.org/theia/ide/#{version}/macos/TheiaIDE.dmg", + verified: "download.eclipse.org/theia/ide/" + name "TheiaIDE" + desc "IDE framework" + homepage "https://theia-ide.org/" + + livecheck do + url "https://download.eclipse.org/theia/ide/latest/macos/" + regex(/href=.*?TheiaIDE[._-]v?(\d+(?:\.\d+)+)(?:-mac)?\.zip/i) + end + + depends_on macos: ">= :high_sierra" + + app "TheiaIDE.app" + + zap trash: "~/.theia-ide" +end From 8bb6f16ebf322e5e6540c580ccfe7561d3aba597 Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Thu, 18 Jan 2024 07:59:48 -0500 Subject: [PATCH 2/2] theiaide: add zap items --- Casks/t/theiaide.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Casks/t/theiaide.rb b/Casks/t/theiaide.rb index d76494e7c0..4d3d66358c 100644 --- a/Casks/t/theiaide.rb +++ b/Casks/t/theiaide.rb @@ -17,5 +17,12 @@ cask "theiaide" do app "TheiaIDE.app" - zap trash: "~/.theia-ide" + zap trash: [ + "~/.theia-ide", + "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/eclipse.theia.sfl3", + "~/Library/Application Support/Theia IDE", + "~/Library/Logs/Theia IDE", + "~/Library/Preferences/eclipse.theia.plist", + "~/Library/Saved Application State/eclipse.theia.savedState", + ] end