mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
videofusion: update livecheck
This commit is contained in:
@@ -11,14 +11,17 @@ cask "videofusion" do
|
||||
|
||||
livecheck do
|
||||
url "https://lf3-beecdn.bytetos.com/obj/ies-fe-bee/bee_prod/biz_80/bee_prod_80_bee_publish_3563.json"
|
||||
regex(/(\d+(?:_\d+)+).*\.dmg/i)
|
||||
strategy :page_match do |page|
|
||||
JSON.parse(page)["mac_download_pkg"]["channel_default"][/(\d+(?:_\d+)+).*\.dmg/i, 1].tr("_", ".")
|
||||
regex(/Jianying[._-]v?(\d+(?:[._]\d+)+).*\.dmg/i)
|
||||
strategy :json do |json, regex|
|
||||
match = json.dig("mac_download_pkg", "channel_default")&.match(regex)
|
||||
next if match.blank?
|
||||
|
||||
match[1].tr("_", ".")
|
||||
end
|
||||
end
|
||||
|
||||
auto_updates true
|
||||
depends_on macos: ">= :big_sur"
|
||||
depends_on macos: ">= :mojave"
|
||||
|
||||
app "VideoFusion-macOS.app"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user