From 24a14220e8a3cc7a3438337c1d8bb25d950e5605 Mon Sep 17 00:00:00 2001 From: cyxmon Date: Sat, 7 Oct 2023 16:14:29 -0500 Subject: [PATCH 1/2] modrinth: new cask --- Casks/m/modrinth.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Casks/m/modrinth.rb diff --git a/Casks/m/modrinth.rb b/Casks/m/modrinth.rb new file mode 100644 index 0000000000..c107934458 --- /dev/null +++ b/Casks/m/modrinth.rb @@ -0,0 +1,25 @@ +cask "modrinth" do + version "0.5.4" + sha256 "e0f57aef3ca89bb319c488ab5801b88cee08905a799dc1b0d85dc864369f2a32" + + url "https://launcher-files.modrinth.com/versions/#{version}/macos/Modrinth%20App_#{version}_universal.dmg" + name "Modrinth App" + desc "Minecraft modding platform" + homepage "https://modrinth.com/" + + livecheck do + url "https://modrinth.com/app" + regex(/Modrinth%20App_(\d+(?:\.\d+)*)_universal\.dmg/i) + end + + app "Modrinth App.app" + + uninstall quit: "com.modrinth.theseus" + + zap trash: [ + "~/Library/Application Support/com.modrinth.theseus", + "~/Library/Caches/com.modrinth.theseus", + "~/Library/WebKit/com.modrinth.theseus", + "~/Library/Saved Application State/com.modrinth.theseus.savedState", + ] +end From f7313c1b4deda99d0419b5080e40ccd6fe00600c Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Sun, 8 Oct 2023 12:43:15 -0400 Subject: [PATCH 2/2] modrinth: update livecheck --- Casks/m/modrinth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/m/modrinth.rb b/Casks/m/modrinth.rb index c107934458..97d594772d 100644 --- a/Casks/m/modrinth.rb +++ b/Casks/m/modrinth.rb @@ -9,7 +9,7 @@ cask "modrinth" do livecheck do url "https://modrinth.com/app" - regex(/Modrinth%20App_(\d+(?:\.\d+)*)_universal\.dmg/i) + regex(/Modrinth%20App[._-](\d+(?:\.\d+)*)[._-]universal\.dmg/i) end app "Modrinth App.app"