Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / n / nomachine.rb
blob02ca34899b6a6302799034f8b4309cf3f1d28d51
1 cask "nomachine" do
2   version "8.16.1_2"
3   sha256 "622e12ab5397b74bfcae3c4de5a91c018ed222244d4e09804af0fc03e9e8e04e"
5   url "https://download.nomachine.com/download/#{version.major_minor}/MacOSX/nomachine_#{version}.dmg"
6   name "NoMachine"
7   desc "Remote desktop software"
8   homepage "https://www.nomachine.com/"
10   livecheck do
11     url "https://www.nomachine.com/support&destination=downloads&callback=L2Rvd25sb2FkLz9pZD03"
12     regex(/nomachine[._-]v?(\d+(?:\.\d+)+_\d+)\.dmg/i)
13   end
15   auto_updates true
17   pkg "NoMachine.pkg"
19   # A launchctl job ordinarily manages uninstall once the app bundle is removed
20   # To ensure it ran, verify if /Library/Application Support/NoMachine/nxuninstall.sh no longer exists
21   uninstall launchctl: [
22               "com.nomachine.localnxserver",
23               "com.nomachine.nxlaunchconf",
24               "com.nomachine.nxnode",
25               "com.nomachine.nxplayer",
26               "com.nomachine.nxrunner",
27               "com.nomachine.nxserver",
28               "com.nomachine.server",
29               "com.nomachine.uninstall",
30               "com.nomachine.uninstallAgent",
31             ],
32             pkgutil:   [
33               "com.nomachine.nomachine.NoMachine-*.pkg",
34               "com.nomachine.nxnode",
35               "com.nomachine.nxplayer",
36               "com.nomachine.nxrunner",
37               "com.nomachine.nxserver",
38             ],
39             delete:    "/Applications/NoMachine.app"
41   zap trash: [
42     "/Library/Application Support/NoMachine",
43     "~/Documents/NoMachine",
44     "~/Library/Preferences/com.nomachine.nxdock.plist",
45   ]
46 end