cut v0.52.1
[Homebrew/homebrew-cask-versions.git] / Casks / aliedit.rb
blob4f73dbace5257f6baca49ab844582674c35f430f
1 # encoding: UTF-8
2 cask :v1 => 'aliedit' do
3   version :latest
4   sha256 :no_check
6   url 'https://d.alipayobjects.com/sec/edit/wkaliedit.dmg'
7   name '支付宝控件'
8   homepage 'https://110.alipay.com/sc/aliedit/intro.htm'
9   license :closed
11   pkg 'installer.pkg'
13   uninstall :pkgutil => 'com.alipay.www',
14             :launchctl => [
15                            'com.alipay.DispatcherService',
16                            'com.alipay.refresher.agent',
17                           ],
18             :delete => [
19                         '/Library/Application Support/Alipay',
20                         '/Library/Google/Chrome/NativeMessagingHosts/com.alipay.cert.json',
21                         '/Library/Google/Chrome/NativeMessagingHosts/com.alipay.edit.json',
22                         '/Library/Google/Chrome/NativeMessagingHosts/com.alipay.security.json',
23                         '/Library/LaunchDaemons/com.alipay.DispatcherService.plist',
24                         # the files under ~/Library are installed by the pkg, and logically should be removed by uninstall
25                         File.expand_path('~/Library/Alipay'),
26                         File.expand_path('~/Library/Internet Plug-Ins/aliedit.plugin'),
27                         File.expand_path('~/Library/Internet Plug-Ins/npalicdo.plugin'),
28                         File.expand_path('~/Library/LaunchAgents/com.alipay.refresher.plist'),
29                        ]
30 end