28 lines
982 B
Ruby
28 lines
982 B
Ruby
cask "nomachine" do
|
|
version "7.7.4_1"
|
|
sha256 "776d49dbe26570ebbca6903cc5b50f072cd70c5bc4162907a2f52b44d07b5d54"
|
|
|
|
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://www.nomachine.com/download/download&id=7"
|
|
regex(/nomachine[._-]v?(\d+(?:\.\d+)*_\d+)\.dmg/i)
|
|
end
|
|
|
|
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",
|
|
launchctl: [
|
|
"com.nomachine.localnxserver",
|
|
"com.nomachine.nxserver",
|
|
"com.nomachine.server",
|
|
"com.nomachine.uninstall",
|
|
]
|
|
end
|