mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
react-studio: update livecheck
This commit is contained in:
@@ -10,17 +10,17 @@ cask "react-studio" do
|
||||
|
||||
livecheck do
|
||||
url "https://c1.neonto.com/studio/verinfo_reactstudio"
|
||||
strategy :page_match do |page|
|
||||
json_data = JSON.parse(page)
|
||||
next if json_data.blank?
|
||||
|
||||
version = json_data["latestVersionDescription"]
|
||||
build = json_data["latestVersion"].to_i
|
||||
strategy :json do |json|
|
||||
version = json["latestVersionDescription"]
|
||||
build = json["latestVersion"]&.to_i
|
||||
next if version.blank? || build.blank?
|
||||
|
||||
"#{version},#{build}"
|
||||
end
|
||||
end
|
||||
|
||||
depends_on macos: ">= :sierra"
|
||||
|
||||
app "React Studio.app"
|
||||
|
||||
zap trash: [
|
||||
|
||||
Reference in New Issue
Block a user