From 3697fc8ff973aecb3cfe57201613ef6d1718c8bf Mon Sep 17 00:00:00 2001 From: Klaus Hipp Date: Fri, 10 Jan 2025 10:35:24 +0100 Subject: [PATCH 1/2] element: various updates --- Casks/e/element.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Casks/e/element.rb b/Casks/e/element.rb index 942444c4375ff..c58bb11ee61fc 100644 --- a/Casks/e/element.rb +++ b/Casks/e/element.rb @@ -1,15 +1,17 @@ cask "element" do version "1.11.89" - sha256 "0463bc7944216f45d68bfe70b1bf12b21567d1f32a0355dea33d4fcdd1638669" + sha256 "f99e2781996ea6f52fd3a56aca538d897351ec3ffc4f2dd26b549d4c1fdfa327" - url "https://packages.element.io/desktop/install/macos/Element-#{version}-universal.dmg" + url "https://packages.element.io/desktop/update/macos/Element-#{version}-universal-mac.zip" name "Element" desc "Matrix collaboration client" homepage "https://element.io/get-started" livecheck do - url "https://packages.element.io/desktop/install/macos/index.html" - regex(/href=.*?Element[._-]v?(\d+(?:\.\d+)+)[._-]universal\.dmg/i) + url "https://packages.element.io/desktop/update/macos/releases.json" + strategy :json do |json| + json["currentRelease"] + end end auto_updates true @@ -22,7 +24,9 @@ "~/Library/Application Support/Riot", "~/Library/Caches/im.riot.app", "~/Library/Caches/im.riot.app.ShipIt", + "~/Library/HTTPStorages/im.riot.app", "~/Library/Logs/Riot", + "~/Library/Preferences/ByHost/im.riot.app.ShipIt.*.plist", "~/Library/Preferences/im.riot.app.helper.plist", "~/Library/Preferences/im.riot.app.plist", "~/Library/Saved Application State/im.riot.app.savedState", From ac1688e37ec731d34263b43b32890731f1a64501 Mon Sep 17 00:00:00 2001 From: Klaus Hipp Date: Fri, 10 Jan 2025 10:35:49 +0100 Subject: [PATCH 2/2] element@nightly: various updates --- Casks/e/element@nightly.rb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Casks/e/element@nightly.rb b/Casks/e/element@nightly.rb index 0de2b70651019..4d619ab9991d2 100644 --- a/Casks/e/element@nightly.rb +++ b/Casks/e/element@nightly.rb @@ -1,13 +1,19 @@ cask "element@nightly" do - version :latest - sha256 :no_check + version "2025011001" + sha256 "9479f9d96bb8a8ad82093a658abb2f9c849a1fbd3ac955a13c5bb7df4cfb58a2" - url "https://packages.riot.im/nightly/install/macos/Element%20Nightly.dmg", - verified: "packages.riot.im/nightly/install/macos/" + url "https://packages.element.io/nightly/update/macos/Element%20Nightly-#{version}-universal-mac.zip" name "Element Nightly" desc "Matrix collaboration client" homepage "https://element.io/get-started" + livecheck do + url "https://packages.element.io/nightly/update/macos/releases.json" + strategy :json do |json| + json["currentRelease"] + end + end + depends_on macos: ">= :big_sur" app "Element Nightly.app" @@ -17,7 +23,9 @@ "~/Library/Application Support/Riot", "~/Library/Caches/im.riot.app", "~/Library/Caches/im.riot.app.ShipIt", + "~/Library/HTTPStorages/im.riot.app", "~/Library/Logs/Riot", + "~/Library/Preferences/ByHost/im.riot.app.ShipIt.*.plist", "~/Library/Preferences/im.riot.app.helper.plist", "~/Library/Preferences/im.riot.app.plist", "~/Library/Saved Application State/im.riot.app.savedState",