Skip to content

Commit

Permalink
Merge pull request #197813 from Homebrew/update-element
Browse files Browse the repository at this point in the history
  • Loading branch information
krehel authored Jan 10, 2025
2 parents b8efc90 + ac1688e commit 53ad827
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
12 changes: 8 additions & 4 deletions Casks/e/element.rb
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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",
Expand Down
16 changes: 12 additions & 4 deletions Casks/e/[email protected]
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit 53ad827

Please sign in to comment.