46 lines
1.5 KiB
Ruby
46 lines
1.5 KiB
Ruby
cask "remotix-agent" do
|
|
version "1.5.19,23333"
|
|
sha256 "87be3d61e5406cd55e3c8ff50567e255379b085d1eeca330899186f7ad96b117"
|
|
|
|
url "https://downloads.remotix.com/agent-mac/RemotixAgent-#{version.csv.first}-#{version.csv.second}.pkg",
|
|
verified: "remotix.com/agent-mac/"
|
|
name "Remotix Agent"
|
|
desc "Remote desktop and monitoring solution"
|
|
homepage "https://remotixcloud.com/"
|
|
|
|
livecheck do
|
|
url "https://remotix.com/downloads-mac/"
|
|
strategy :page_match do |page|
|
|
match = page.match(/Remotix\sAgent.*Current\sversion:\s<b>(\d+(?:\.\d+)+)\s\((\d+)\)/i)
|
|
next if match.blank?
|
|
|
|
"#{match[1]},#{match[2]}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
pkg "RemotixAgent-#{version.csv.first}-#{version.csv.second}.pkg"
|
|
|
|
uninstall pkgutil: [
|
|
"com.nulana.rxagentmac.daemon",
|
|
"com.nulana.rxagentmac",
|
|
],
|
|
signal: [
|
|
["KILL", "com.nulana.rxagentmac.user"],
|
|
["KILL", "com.nulana.rxagentmac"],
|
|
],
|
|
launchctl: [
|
|
"com.nulana.rxagentmac.daemon",
|
|
"com.nulana.rxagentmac.gui",
|
|
"com.nulana.rxagentmac.rc",
|
|
"com.nulana.rxagentmac.user",
|
|
],
|
|
login_item: "Remotix Agent",
|
|
quit: "com.nulana.rxagentmac",
|
|
delete: [
|
|
"/Library/LaunchAgents/com.nulana.rxagentmac.user.plist",
|
|
"/Library/LaunchDaemons/com.nulana.rxagentmac.daemon.plist",
|
|
]
|
|
end
|