excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / n / nomachine-enterprise-client.rb
blob48b19c5422393b62cfdd3d1af916bf524cc37457
1 cask "nomachine-enterprise-client" do
2   version "8.14.2_4"
3   sha256 "7dd459a03b7de661add987241063e153235de058b95acdf79d9d514b81b24f73"
5   url "https://download.nomachine.com/download/#{version.major_minor}/MacOSX/nomachine-enterprise-client_#{version}.dmg"
6   name "NoMachine Enterprise Client"
7   desc "Remote desktop software"
8   homepage "https://www.nomachine.com/"
10   livecheck do
11     url "https://www.nomachine.com/support&destination=downloads&callback=L2Rvd25sb2FkLz9pZD0xNi"
12     regex(/nomachine-enterprise-client[._-]v?(\d+(?:\.\d+)*_\d+)\.dmg/i)
13   end
15   pkg "NoMachine.pkg"
17   # A launchctl job ordinarily manages uninstall once the app bundle is removed
18   # To ensure it ran, verify if /Library/Application Support/NoMachine/nxuninstall.sh no longer exists
19   uninstall launchctl: [
20               "com.nomachine.launchconf",
21               "com.nomachine.uninstall",
22               "com.nomachine.uninstallAgent",
23             ],
24             pkgutil:   [
25               "com.nomachine.*",
26               "com.nomachine.nomachine.NoMachine*.pkg",
27             ],
28             delete:    "/Applications/NoMachine.app"
30   zap trash: [
31         "/Library/Application Support/NoMachine",
32         "~/.nx",
33         "~/Library/Preferences/com.nomachine.nxdock.plist",
34       ],
35       rmdir: "~/Documents/NoMachine"
36 end