2014-11-14 01:26:30 +08:00
|
|
|
cask :v1 => 'nomachine' do
|
2015-01-16 12:02:23 +08:00
|
|
|
version '4.4.6_9'
|
|
|
|
sha256 'd18527101654022d1a4c71f6d998279f657f805e6ec84e0b75354ee28b50c455'
|
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'
|
2014-08-07 05:34:56 +08:00
|
|
|
homepage 'http://www.nomachine.com'
|
2014-12-20 21:46:47 +08:00
|
|
|
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
|
2014-08-07 05:34:56 +08:00
|
|
|
|
2014-09-10 23:37:04 +08:00
|
|
|
pkg 'NoMachine.pkg'
|
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'
|
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
|