homebrew-cask/Casks/nomachine.rb

30 lines
1.1 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'nomachine' do
2016-05-18 10:55:01 +08:00
version '5.1.26_1'
sha256 '837d4cc8049ddccef287ad9fec29c4c009f426f56a32b8c8b1396ced2e80b6f8'
2014-08-07 05:34:56 +08:00
url "http://download.nomachine.com/download/#{version.split('.')[0..1].join('.')}/MacOSX/nomachine_#{version}.dmg"
2015-01-10 05:05:41 +08:00
name 'NoMachine'
homepage 'https://www.nomachine.com/'
2015-09-29 02:59:42 +08:00
license :gratis
2014-08-07 05:34:56 +08:00
2014-09-10 23:37:04 +08:00
pkg 'NoMachine.pkg'
# a launchctl job ordinarily manages uninstall once the app bundle is removed
2014-11-22 22:12:43 +08:00
uninstall delete: '/Applications/NoMachine.app'
2014-09-13 22:23:02 +08:00
# 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'
2014-08-07 05:34:56 +08:00
end