Skip to content

Commit

Permalink
Merge pull request #199609 from Homebrew/update-quiet
Browse files Browse the repository at this point in the history
quiet: update livecheck
  • Loading branch information
daeho-ro authored Jan 26, 2025
2 parents a4705f5 + 10b3470 commit 6fb8016
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions Casks/q/quiet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,16 @@
desc "Private, p2p alternative to Slack and Discord built on Tor & IPFS"
homepage "https://tryquiet.org/"

# Upstream creates GitHub releases for both stable and alpha versions for
# both desktop and mobile versions, so it is necessary to check recent
# releases to match the latest stable desktop version.
livecheck do
url :url
regex(%r{^@quiet/desktop@(\d+(?:\.\d+)+)$}i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"] || release["prerelease"]

match = release["tag_name"]&.match(regex)
next if match.blank?

match[1]
end
end
url :homepage
regex(/href=.*?Quiet[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
end

depends_on macos: ">= :high_sierra"

app "Quiet.app"

zap trash: "~/Library/Application Support/Quiet2"
zap trash: "~/Library/Application Support/Quiet*"

caveats do
requires_rosetta
Expand Down

0 comments on commit 6fb8016

Please sign in to comment.