mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
obs-virtualcam: add livecheck (#102443)
This commit is contained in:
+12
-1
@@ -3,13 +3,24 @@ cask "obs-virtualcam" do
|
||||
sha256 "3b793ee5e55a834c97775e049e8707857b37da810ffa73bbb1e26196a0427aee"
|
||||
|
||||
url "https://github.com/johnboiles/obs-mac-virtualcam/releases/download/v#{version.before_comma}/obs-mac-virtualcam-#{version.after_comma}-v#{version.before_comma}.pkg"
|
||||
appcast "https://github.com/johnboiles/obs-mac-virtualcam/releases.atom"
|
||||
name "OBS Virtual Camera"
|
||||
homepage "https://github.com/johnboiles/obs-mac-virtualcam"
|
||||
|
||||
livecheck do
|
||||
url "https://github.com/johnboiles/obs-mac-virtualcam/releases"
|
||||
strategy :page_match do |page|
|
||||
match = page.match(%r{href=.*?/obs-mac-virtualcam-([a-f0-9]+)-v?(\d+(?:\.\d+)*)\.pkg}i)
|
||||
"#{match[2]},#{match[1]}"
|
||||
end
|
||||
end
|
||||
|
||||
depends_on macos: ">= :high_sierra"
|
||||
|
||||
pkg "obs-mac-virtualcam-#{version.after_comma}-v#{version.before_comma}.pkg"
|
||||
|
||||
uninstall pkgutil: "com.johnboiles.obs-mac-virtualcam"
|
||||
|
||||
caveats do
|
||||
discontinued
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user