mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #160621 from samford/livecheck/github-readme-checks
Update some livecheck blocks to check GitHub README file
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
cask "itunes-volume-control" do
|
||||
version "1.7.5"
|
||||
sha256 "606b6341d14a0c5833dba70d25e2afe5709e4d860bb4b3c1f23d0fdded1b7ee2"
|
||||
sha256 "0d4d22476e3a1b4891e335d86eb28c46fe663bd6d3226d3a8d0ad5d6a5de76d9"
|
||||
|
||||
url "https://raw.githubusercontent.com/alberti42/Volume-Control/main/Releases/VolumeControl-v#{version}.zip",
|
||||
verified: "raw.githubusercontent.com/alberti42/Volume-Control/main/Releases/"
|
||||
@@ -8,10 +8,11 @@ cask "itunes-volume-control" do
|
||||
desc "Control the volume of Apple Music and Spotify using keyboard volume keys"
|
||||
homepage "https://github.com/alberti42/Volume-Control"
|
||||
|
||||
# Upstream doesn't use GitHub releases or reliably create tags for new
|
||||
# versions. Instead, we match the file links in the README.
|
||||
livecheck do
|
||||
url "https://github.com/alberti42/Volume-Control#versions"
|
||||
regex(%r{href=.*?/VolumeControl[._-]v?(\d+(?:\.\d+)+)\.zip}i)
|
||||
strategy :page_match
|
||||
url "https://raw.githubusercontent.com/alberti42/Volume-Control/main/README.md"
|
||||
regex(/VolumeControl[._-]v?(\d+(?:\.\d+)+)\.zip/i)
|
||||
end
|
||||
|
||||
auto_updates true
|
||||
|
||||
@@ -8,10 +8,12 @@ cask "mtgaprotracker" do
|
||||
desc "Advanced Magic: The Gathering Arena tracking tool"
|
||||
homepage "https://mtgarena.pro/mtga-pro-tracker/"
|
||||
|
||||
# GitHub releases don't regularly provide a file for macOS. We check the link
|
||||
# to the latest Mac version from the README, as it's unlikely for there to be
|
||||
# a release with a macOS file in the recent releases.
|
||||
livecheck do
|
||||
url "https://github.com/Razviar/mtgap/"
|
||||
regex(/Mac\sversion.*?(\d+(?:\.\d+)+)/i)
|
||||
strategy :page_match
|
||||
url "https://raw.githubusercontent.com/Razviar/mtgap/master/README.md"
|
||||
regex(/Mac(?:OS)?\s+version.*?v?(\d+(?:\.\d+)+)/i)
|
||||
end
|
||||
|
||||
app "mtgaprotracker.app"
|
||||
|
||||
Reference in New Issue
Block a user