homebrew-cask/Casks/nomachine.rb

29 lines
1.0 KiB
Ruby

cask 'nomachine' do
version '6.0.62_6'
sha256 '3c728db1b8cb74a2fe3bac9e0c28892f45494fa2a8930a9435f7367d3d4b8bd8'
url "http://download.nomachine.com/download/#{version.major_minor}/MacOSX/nomachine_#{version}.dmg"
name 'NoMachine'
homepage 'https://www.nomachine.com/'
pkg 'NoMachine.pkg'
# a launchctl job ordinarily manages uninstall once the app bundle is removed
uninstall delete: '/Applications/NoMachine.app'
# however, we duplicate the uninstall process manually in the zap stanza just in case
zap early_script: {
executable: '/bin/rm',
args: ['-f', '--', '/Library/Application Support/NoMachine/nxuninstall.sh'],
},
quit: 'com.nomachine.nxdock',
kext: [
'com.nomachine.driver.nxau',
'com.nomachine.driver.nxtun',
'com.nomachine.kext.nxfs',
],
pkgutil: 'com.nomachine.nomachine.NoMachine.*',
launchctl: 'com.nomachine.uninstall'
end