30 lines
938 B
Ruby
30 lines
938 B
Ruby
cask "ubiquiti-unifi-controller" do
|
|
version "8.2.93"
|
|
sha256 "33f34d367609b2cfa2d6c975a414e8a96c7ad809d842e28548faa5393836a066"
|
|
|
|
url "https://dl.ubnt.com/unifi/#{version}/UniFi-Network-Server.dmg",
|
|
verified: "dl.ubnt.com/"
|
|
name "Ubiquiti UniFi Network Controller"
|
|
desc "Set up, configure, manage and analyze your UniFi network"
|
|
homepage "https://unifi-sdn.ui.com/"
|
|
|
|
livecheck do
|
|
url "https://fw-update.ubnt.com/api/firmware-latest?filter=eq~~product~~unifi-controller&filter=eq~~channel~~release&filter=eq~~platform~~macos"
|
|
regex(/"version"\s*:\s*"v?(\d+(?:\.\d+)+)/i)
|
|
end
|
|
|
|
app "UniFi.app"
|
|
|
|
uninstall signal: ["TERM", "com.ubnt.UniFi"]
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/UniFi",
|
|
"~/Library/Saved Application State/com.ubnt.UniFi-Discover.savedState",
|
|
"~/Library/Saved Application State/com.ubnt.UniFi.savedState",
|
|
]
|
|
|
|
caveats do
|
|
license "https://www.ui.com/eula/"
|
|
end
|
|
end
|