cask :v1 => 'nomachine' do version '4.3.30_4' sha256 'd2a84877f3e3ebd4ea935b3de52ebffc3e4fcb6e2f3e9ff3d2bfca441915784b' url "http://download.nomachine.com/download/#{version.split('.')[0..1].join('.')}/MacOSX/nomachine_#{version}.dmg" homepage 'http://www.nomachine.com' license :unknown # todo: improve this machine-generated value 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