Skip to content

Commit

Permalink
Merge pull request #198718 from Homebrew/update-obsbot-center
Browse files Browse the repository at this point in the history
obsbot-center: update livecheck and url
  • Loading branch information
chenrui333 authored Jan 18, 2025
2 parents 32c7cb6 + dd40a5a commit 937858e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Casks/o/obsbot-center.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
cask "obsbot-center" do
version "2.0.10.37"
sha256 "6a6cdf2d7535957c4c1f0b0173a7bb4ff928cfb04d252f8396ffa0712b557592"
version "2.0.10.37,31fab900"
sha256 "18a297580388d9c13460574c3eaa3a395af03f2a6478b2cdca0197af6b63a987"

url "https://resource-cdn.obsbothk.com/download/obsbot-center/Obsbot_Center_OA_E_MacOS_#{version}_release.dmg",
url "https://resource-cdn.obsbothk.com/download/obsbot-center/obsbot_center_oa_e_mac_os_#{version.csv.first.dots_to_underscores}_release_#{version.csv.second}.dmg",
verified: "resource-cdn.obsbothk.com/download/obsbot-center/"
name "OBSBOT Center"
desc "Configuration and firmware update utility for OBSBOT Tiny and Meet series"
homepage "https://www.obsbot.com/download"

livecheck do
url "https://www.obsbot.com/download/obsbot-tiny-series"
regex(/Obsbot[._-]Center[._-]OA[._-]E[._-]MacOS[._-](\d+(?:\.\d+)+)[._-]release\.dmg/i)
regex(/href=.*?obsbot[._-]center[._-]oa[._-]e[._-]mac[._-]os[._-]v?(\d+(?:[._]\d+)+)[._-]release[._-](\h+)\.dmg/i)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?

"#{match[1].tr("_", ".")},#{match[2]}"
end
end

depends_on macos: ">= :big_sur"
Expand Down

0 comments on commit 937858e

Please sign in to comment.