2015-12-18 09:15:28 +08:00
|
|
|
cask 'nomachine' do
|
2015-11-30 09:51:14 +08:00
|
|
|
version '5.0.53_1'
|
|
|
|
sha256 'f2bbb00e970b76af7947dd56be4a9cb0f373fd641657563a9136b034735c8c3b'
|
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'
|
2015-06-10 10:24:54 +08:00
|
|
|
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'
|
2016-01-04 03:19:04 +08:00
|
|
|
|
2014-08-08 23:37:09 +08:00
|
|
|
# a launchctl job ordinarily manages uninstall once the app bundle is removed
|
2014-11-22 22:12:43 +08:00
|
|
|
|
2014-09-18 19:57:58 +08:00
|
|
|
uninstall :delete => '/Applications/NoMachine.app'
|
2016-01-04 03:19:04 +08:00
|
|
|
|
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 => {
|
2016-01-04 03:19:04 +08:00
|
|
|
:executable => '/bin/rm',
|
|
|
|
:args => ['-f', '--', '/Library/Application Support/NoMachine/nxuninstall.sh'],
|
2014-09-13 22:23:02 +08:00
|
|
|
},
|
2016-01-04 03:19:04 +08:00
|
|
|
:quit => 'com.nomachine.nxdock',
|
|
|
|
:kext => [
|
|
|
|
'com.nomachine.driver.nxau',
|
|
|
|
'com.nomachine.driver.nxtun',
|
|
|
|
'com.nomachine.kext.nxfs',
|
2014-09-13 22:23:02 +08:00
|
|
|
],
|
2016-01-04 03:19:04 +08:00
|
|
|
:pkgutil => 'com.nomachine.nomachine.NoMachine.*',
|
|
|
|
:launchctl => 'com.nomachine.uninstall'
|
2014-08-07 05:34:56 +08:00
|
|
|
end
|