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'
|
|
|
|
homepage 'https://battle.net/'
|
|
|
|
|
|
|
|
installer manual: 'Battle.net-Setup.app'
|
|
|
|
end
|
|
|
|
|
|
|
|
language 'zh', 'CN' do
|
|
|
|
url 'https://www.battlenet.com.cn/download/getInstaller?os=mac&installer=Battle.net-Setup-zhCN.zip'
|
2017-01-29 17:45:19 +08:00
|
|
|
homepage 'http://www.battlenet.com.cn/zh/'
|
2014-12-11 11:47:59 +08:00
|
|
|
|
2016-09-09 11:36:05 +08:00
|
|
|
installer manual: 'Battle.net-Setup-zhCN.app'
|
|
|
|
end
|
|
|
|
|
|
|
|
name 'Blizzard Battle.net'
|
2014-12-11 11:47:59 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
uninstall delete: '/Applications/Battle.net.app'
|
2014-12-11 11:47:59 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
zap delete: [
|
|
|
|
'~/Library/Preferences/net.battle.net.app.plist',
|
|
|
|
'~/Library/Preferences/net.battle.Authenticator.prefs',
|
|
|
|
'~/Library/Preferences/net.battle.Identity.prefs',
|
|
|
|
'~/Library/Preferences/net.battnet.battle.plist',
|
|
|
|
'/Users/Shared/Battle.net',
|
2017-01-31 18:14:20 +08:00
|
|
|
],
|
|
|
|
rmdir: '~/Blizzard'
|
2014-12-11 11:47:59 +08:00
|
|
|
|
|
|
|
caveats 'If you pick an installation directory other than /Applications when installing this cask, you will need to uninstall it manually'
|
|
|
|
end
|