2017-04-21 02:03:09 +08:00
|
|
|
cask 'starcraft' do
|
|
|
|
version :latest
|
|
|
|
sha256 :no_check
|
|
|
|
|
|
|
|
# battle.net was verified as official when first introduced to the cask
|
|
|
|
url 'https://www.battle.net/download/getInstallerForGame?os=MAC&version=LIVE&gameProgram=STARCRAFT'
|
|
|
|
name 'Starcraft'
|
|
|
|
homepage 'https://starcraft.com/'
|
|
|
|
|
|
|
|
depends_on macos: '>= :el_capitan'
|
|
|
|
|
2017-09-30 18:50:42 +08:00
|
|
|
installer manual: 'StarCraft-Setup.app'
|
2017-04-21 02:03:09 +08:00
|
|
|
|
|
|
|
uninstall delete: '/Applications/StarCraft'
|
|
|
|
|
|
|
|
zap delete: [
|
|
|
|
'~/Library/Preferences/com.blizzard.Starcraft.plist',
|
|
|
|
'~/Library/Preferences/com.blizzard.systemsurvey.plist',
|
|
|
|
'~/Library/Preferences/net.battle.plist',
|
|
|
|
'/Users/Shared/Battle.net',
|
|
|
|
]
|
|
|
|
|
|
|
|
caveats 'If you pick an installation directory other than /Applications when installing this cask, you will need to uninstall it manually'
|
|
|
|
end
|