homebrew-cask/Casks/aliedit.rb

29 lines
1.3 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'aliedit' do
2014-12-05 18:41:40 +08:00
version :latest
sha256 :no_check
2015-01-15 10:06:40 +08:00
url 'https://download.alipay.com/sec/edit/wkaliedit.dmg'
2015-01-04 10:49:23 +08:00
name '支付宝控件'
2014-12-05 18:41:40 +08:00
homepage 'https://110.alipay.com/sc/aliedit/intro.htm'
pkg 'installer.pkg'
uninstall pkgutil: 'com.alipay.www',
launchctl: [
'com.alipay.DispatcherService',
'com.alipay.refresher.agent',
],
delete: [
'/Library/Application Support/Alipay',
'/Library/Google/Chrome/NativeMessagingHosts/com.alipay.cert.json',
'/Library/Google/Chrome/NativeMessagingHosts/com.alipay.edit.json',
'/Library/Google/Chrome/NativeMessagingHosts/com.alipay.security.json',
'/Library/LaunchDaemons/com.alipay.DispatcherService.plist',
# the files under ~/Library are installed by the pkg, and logically should be removed by uninstall
File.expand_path('~/Library/Alipay'),
File.expand_path('~/Library/Internet Plug-Ins/aliedit.plugin'),
File.expand_path('~/Library/Internet Plug-Ins/npalicdo.plugin'),
File.expand_path('~/Library/LaunchAgents/com.alipay.refresher.plist'),
]
2014-12-05 18:41:40 +08:00
end