30 lines
1.1 KiB
Ruby
30 lines
1.1 KiB
Ruby
cask 'thunder' do
|
|
version '3.3.6.4138'
|
|
sha256 'cb4bea9ab64b7767db1a03501d1ebbd4dbc2bd3e78025e5c6df9e8ee54ee54dd'
|
|
|
|
# down.sandai.net was verified as official when first introduced to the cask
|
|
url "http://down.sandai.net/mac/thunder_#{version}.dmg"
|
|
appcast 'https://static-xl9-ssl.xunlei.com/json/mac_download_url.json'
|
|
name 'Thunder'
|
|
name '迅雷'
|
|
homepage 'https://mac.xunlei.com/'
|
|
|
|
auto_updates true
|
|
depends_on macos: '>= :yosemite'
|
|
|
|
app 'Thunder.app'
|
|
|
|
zap trash: [
|
|
'~/Library/Application Support/Thunder',
|
|
'~/Library/Caches/com.xunlei.Thunder',
|
|
'~/Library/Caches/com.xunlei.XLPlayer',
|
|
'~/Library/Cookies/com.xunlei.Thunder.binarycookies',
|
|
'~/Library/Preferences/com.xunlei.Thunder.loginSDK.plist',
|
|
'~/Library/Preferences/com.xunlei.Thunder.plist',
|
|
'~/Library/Preferences/com.xunlei.XLPlayer.plist',
|
|
'~/Library/Saved Application State/com.xunlei.Thunder.savedState',
|
|
'~/Library/Saved Application State/com.xunlei.XLPlayer.savedState',
|
|
'~/Library/WebKit/com.xunlei.Thunder',
|
|
]
|
|
end
|