Skip to content

Commit

Permalink
omnissa-horizon-client: update livecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
khipp committed Dec 27, 2024
1 parent 67dfbc9 commit a2a1c40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Casks/o/omnissa-horizon-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
url "https://customerconnect.omnissa.com/channel/public/api/v1.0/products/getRelatedDLGList?locale=en_US&category=desktop_end_user_computing&product=omnissa_horizon_clients&version=8&dlgType=PRODUCT_BINARY"
regex(%r{/([^/]+)/Omnissa[._-]Horizon[._-]Client[._-]v?(\d+(?:[.-]\d+)+)\.dmg}i)
strategy :json do |json, regex|
mac_json_info = json["dlgEditionsLists"]&.select { |item| item["name"]&.match(/mac/i) }&.first
mac_json_info = json["dlgEditionsLists"]&.find { |item| item["name"]&.match(/mac/i) }
next if mac_json_info.blank?

api_item = mac_json_info["dlgList"]&.first
next if api_item.blank?

Expand Down

0 comments on commit a2a1c40

Please sign in to comment.