2 version "0.81.1,bc089a0a-d3a4-4e2c-ab69-b29352d182d2,174c"
3 sha256 "da085c56bd6d4c23d015b65326ab9a7fc92d56c736114f7568512a1d7a4d9de7"
5 url "https://fw-download.ubnt.com/data/uid-ui-desktop-app/#{version.csv.third}-macOS-#{version.csv.first}-#{version.csv.second}.pkg",
6 verified: "fw-download.ubnt.com/data/uid-ui-desktop-app/"
8 desc "Corporate Wi-Fi, VPN, SSO, and HR Application"
9 homepage "https://www.ui.com/uid"
12 url "https://api-gw.uid.alpha.ui.com:443/location/api/v1/public/fw/download/latest/?app=UI-DESKTOP-MACOS"
13 regex(/(\w+)[._-]macOS[._-](\d+(?:\.\d+)+)[._-](\h{8}-\h{4}-\h{4}-\h{4}-\h{12})/i)
14 strategy :header_match do |headers, regex|
15 match = headers["location"]&.match(regex)
18 "#{match[2]},#{match[3]},#{match[1]}"
22 depends_on macos: ">= :mojave"
24 pkg "#{version.csv.third}-macOS-#{version.csv.first}-#{version.csv.second}.pkg"
26 uninstall launchctl: [
27 "application.com.ui.uid.desktop.25686722.25686727",
28 "com.ui.uid.desktop.privilegedtool",
29 "com.ui.uid.desktop.startup",
31 quit: "com.ui.uid.desktop",
38 "~/Library/Application Support/com.ui.uid.desktop/",
39 "~/Library/Caches/com.ui.uid.desktop/",
41 "~/Library/Preferences/com.ui.uid.desktop.plist",
42 "~/Library/Saved Application State/com.ui.uid.desktop.savedState/",