videofusion: update livecheck

This commit is contained in:
Sam Ford
2023-11-29 08:50:09 -05:00
parent 222040c28a
commit 24f77c19fd
+7 -4
View File
@@ -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"