-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196542 from Homebrew/omnissa-horizon-client
- Loading branch information
Showing
3 changed files
with
70 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
cask "omnissa-horizon-client" do | ||
version "2412-8.14.0-12437218286,CART25FQ4_MAC_2412" | ||
sha256 "89d4e910bed1fb03c322d22d1be75aa8172af390d08db9d3449ffeab051d0f21" | ||
|
||
url "https://download3.omnissa.com/software/#{version.csv.second}/Omnissa-Horizon-Client-#{version.csv.first}.dmg" | ||
name "Omnissa Horizon Client" | ||
desc "Virtual machine client" | ||
homepage "https://www.omnissa.com/" | ||
|
||
livecheck do | ||
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 | ||
api_item = mac_json_info["dlgList"]&.first | ||
next if api_item.blank? | ||
|
||
download_group = api_item["code"] | ||
product_id = api_item["productId"] | ||
pid = api_item["releasePackageId"] | ||
next if download_group.blank? || product_id.blank? || pid.blank? | ||
|
||
url = "https://customerconnect.omnissa.com/channel/public/api/v1.0/dlg/details?locale=en_US&downloadGroup=#{download_group}&productId=#{product_id}&rPId=#{pid}" | ||
download_item = Homebrew::Livecheck::Strategy.page_content(url) | ||
next if download_item[:content].blank? | ||
|
||
match = download_item[:content].match(regex) | ||
next if match.blank? | ||
|
||
"#{match[2]},#{match[1]}" | ||
end | ||
end | ||
|
||
auto_updates true | ||
depends_on macos: ">= :big_sur" | ||
|
||
pkg "Omnissa Horizon Client.pkg" | ||
|
||
uninstall launchctl: [ | ||
"com.omnissa.horizon.CDSHelper", | ||
"com.ws1.deem.MacUIEvents", | ||
"com.ws1.deemd", | ||
"com.ws1.ws1etlm", | ||
"com.ws1.ws1etlmu", | ||
], | ||
quit: "com.omnissa.horizonapp", | ||
pkgutil: [ | ||
"com.omnissa.horizon.client.mac", | ||
"com.ws1.Deem", | ||
"com.ws1.Deem.InstallerHelper", | ||
"com.ws1.EndpointTelemetryService", | ||
] | ||
|
||
zap trash: [ | ||
"/Library/Application Support/Omnissa", | ||
"/Library/LaunchDaemons/com.omnissa.horizon.CDSHelper.plist", | ||
"/Library/Preferences/com.omnissa.horizon.client.mac.plist", | ||
"/Library/PrivilegedHelperTools/com.omnissa.horizon.CDSHelper", | ||
"~/.omnissa", | ||
"~/Library/Application Support/Omnissa Horizon Client", | ||
"~/Library/Caches/com.omnissa.horizon.client.mac", | ||
"~/Library/Logs/Omnissa Horizon Client", | ||
"~/Library/Logs/Omnissa", | ||
"~/Library/Preferences/com.omnissa.horizon.client.mac.plist", | ||
"~/Library/Preferences/com.omnissa.horizon.keyboard.plist", | ||
"~/Library/Saved Application State/com.omnissa.horizon.client.mac.savedState", | ||
"~/Library/WebKit/com.omnissa.horizon.client.mac", | ||
] | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters