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
|
|
|
|
|
2015-01-17 11:21:29 +08:00
|
|
|
# blizzard.com is the official download host per the vendor homepage
|
2014-12-11 11:47:59 +08:00
|
|
|
url 'http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.zip'
|
2015-12-25 03:04:00 +08:00
|
|
|
name 'Blizzard Battle.net'
|
2014-12-11 11:47:59 +08:00
|
|
|
homepage 'http://us.battle.net/en/'
|
|
|
|
license :commercial
|
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
installer manual: 'Battle.net-Setup-enUS.app'
|
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',
|
|
|
|
]
|
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
|