2015-12-18 09:15:28 +08:00
|
|
|
cask 'radio-silence' do
|
2016-05-07 23:08:17 +08:00
|
|
|
version '2.1'
|
2016-06-01 02:45:30 +08:00
|
|
|
sha256 '64500a1f683ca17b1e7fe2b05f870a871765352472c2f51b158607aa393b26d0'
|
2015-10-13 02:37:25 +08:00
|
|
|
|
2016-05-07 23:08:17 +08:00
|
|
|
url "https://radiosilenceapp.com/downloads/Radio_Silence_#{version}.pkg"
|
|
|
|
appcast 'https://radiosilenceapp.com/update',
|
2017-04-19 12:20:47 +08:00
|
|
|
checkpoint: 'fc370e4a6397e4b72f6a81c3b840ae1c45376e23d55b258f2f52b01fae037949'
|
2015-10-13 02:37:25 +08:00
|
|
|
name 'Radio Silence'
|
2016-11-29 13:39:08 +08:00
|
|
|
homepage 'https://radiosilenceapp.com/'
|
2015-10-13 02:37:25 +08:00
|
|
|
|
2016-05-07 23:08:17 +08:00
|
|
|
pkg "Radio_Silence_#{version}.pkg"
|
2016-01-04 03:19:19 +08:00
|
|
|
|
2015-10-13 02:37:25 +08:00
|
|
|
# We intentionally unload the kext twice as a workaround
|
|
|
|
# See https://github.com/caskroom/homebrew-cask/pull/1802#issuecomment-34171151
|
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
uninstall early_script: {
|
|
|
|
executable: '/sbin/kextunload',
|
|
|
|
args: ['-b', 'com.radiosilenceapp.nke.filter'],
|
|
|
|
must_succeed: false,
|
|
|
|
},
|
|
|
|
quit: 'com.radiosilenceapp.client',
|
|
|
|
kext: 'com.radiosilenceapp.nke.filter',
|
|
|
|
pkgutil: 'com.radiosilenceapp.radioSilence.*',
|
|
|
|
launchctl: [
|
|
|
|
'com.radiosilenceapp.trial',
|
|
|
|
'com.radiosilenceapp.agent',
|
|
|
|
'com.radiosilenceapp.nke',
|
|
|
|
]
|
2015-10-13 02:37:25 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
zap delete: '~/Library/Application Support/Radio Silence'
|
2015-10-13 02:37:25 +08:00
|
|
|
end
|