homebrew-cask/Casks/n/nomachine.rb

47 lines
1.5 KiB
Ruby

cask "nomachine" do
version "8.8.1_1"
sha256 "100d9a9508e8aafd6d1f330cae7cc3d6ce8deb6a7db89b0ffcf64a7827874c15"
url "https://download.nomachine.com/download/#{version.major_minor}/MacOSX/nomachine_#{version}.dmg"
name "NoMachine"
desc "Remote desktop software"
homepage "https://www.nomachine.com/"
livecheck do
url "https://nomachine.com/support&destination=downloads&callback=L2Rvd25sb2FkLz9pZD03"
regex(/nomachine[._-]v?(\d+(?:\.\d+)+_\d+)\.dmg/i)
end
auto_updates true
pkg "NoMachine.pkg"
# A launchctl job ordinarily manages uninstall once the app bundle is removed
# To ensure it ran, verify if /Library/Application Support/NoMachine/nxuninstall.sh no longer exists
uninstall delete: "/Applications/NoMachine.app",
pkgutil: [
"com.nomachine.nomachine.NoMachine-*.pkg",
"com.nomachine.nxnode",
"com.nomachine.nxplayer",
"com.nomachine.nxrunner",
"com.nomachine.nxserver",
],
launchctl: [
"com.nomachine.nxnode",
"com.nomachine.nxplayer",
"com.nomachine.nxrunner",
"com.nomachine.nxserver",
"com.nomachine.localnxserver",
"com.nomachine.uninstall",
"com.nomachine.server",
"com.nomachine.nxlaunchconf",
]
zap trash: [
"/Library/Application Support/NoMachine",
"~/Documents/NoMachine",
"~/Library/Preferences/com.nomachine.nxdock.plist",
]
end