2015-12-18 09:15:28 +08:00
|
|
|
cask 'battle-net' do
|
2014-12-11 11:47:59 +08:00
|
|
|
version :latest
|
|
|
|
sha256 :no_check
|
|
|
|
|
2016-09-09 11:36:05 +08:00
|
|
|
language 'en', default: true do
|
|
|
|
url 'https://www.battle.net/download/getInstallerForGame?os=mac&locale=enUS&version=LIVE&gameProgram=BATTLENET_APP'
|
|
|
|
end
|
|
|
|
|
|
|
|
language 'zh', 'CN' do
|
2017-04-18 13:29:39 +08:00
|
|
|
url 'https://www.battle.net/download/getInstallerForGame?os=mac&installer=Battle.net-Setup-zhCN.zip'
|
2016-09-09 11:36:05 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
name 'Blizzard Battle.net'
|
2018-01-01 06:14:17 +08:00
|
|
|
homepage 'https://www.battle.net/'
|
2014-12-11 11:47:59 +08:00
|
|
|
|
2018-01-25 15:00:07 +08:00
|
|
|
installer manual: 'Battle.net-Setup.app'
|
|
|
|
|
|
|
|
uninstall delete: '/Applications/Battle.net.app'
|
2014-12-11 11:47:59 +08:00
|
|
|
|
2017-08-24 13:29:22 +08:00
|
|
|
zap trash: [
|
2018-01-01 06:14:17 +08:00
|
|
|
'~/Library/Application Support/Battle.net',
|
|
|
|
'~/Library/Caches/net.battle.bootstrapper',
|
2017-08-24 13:29:22 +08:00
|
|
|
'~/Library/Preferences/net.battle.net.app.plist',
|
2018-01-01 06:14:17 +08:00
|
|
|
'~/Library/Preferences/net.battle.app.helper.plist',
|
2017-08-24 13:29:22 +08:00
|
|
|
'~/Library/Preferences/net.battle.Authenticator.prefs',
|
|
|
|
'~/Library/Preferences/net.battle.Identity.prefs',
|
2018-01-01 06:14:17 +08:00
|
|
|
'~/Library/Preferences/net.battle.plist',
|
2017-08-24 13:29:22 +08:00
|
|
|
'~/Library/Preferences/net.battnet.battle.plist',
|
2018-01-01 06:14:17 +08:00
|
|
|
'~/Library/Saved Application State/net.battle.app.savedState',
|
2017-08-24 13:29:22 +08:00
|
|
|
'/Users/Shared/Battle.net',
|
|
|
|
'/Users/Shared/Blizzard',
|
|
|
|
],
|
|
|
|
rmdir: '~/Blizzard'
|
2018-01-25 15:00:07 +08:00
|
|
|
|
|
|
|
caveats <<~EOS
|
|
|
|
If you pick an installation directory other than /Applications when installing this cask, you will need to uninstall it manually
|
|
|
|
EOS
|
2014-12-11 11:47:59 +08:00
|
|
|
end
|