battle-net: fix RuboCop style.

See https://github.com/Homebrew/brew/pull/7867.
This commit is contained in:
Mike McQuaid 2020-07-27 10:17:41 +01:00
parent bbbfdd20af
commit b1c421c45b
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 23 additions and 23 deletions

View File

@ -1,40 +1,40 @@
cask 'battle-net' do
cask "battle-net" do
version :latest
sha256 :no_check
language 'en', default: true do
url 'https://www.battle.net/download/getInstallerForGame?os=mac&locale=enUS&version=LIVE&gameProgram=BATTLENET_APP'
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
url 'https://www.battle.net/download/getInstallerForGame?os=mac&installer=Battle.net-Setup-zhCN.zip'
language "zh", "CN" do
url "https://www.battle.net/download/getInstallerForGame?os=mac&installer=Battle.net-Setup-zhCN.zip"
end
name 'Blizzard Battle.net'
homepage 'https://www.battle.net/'
name "Blizzard Battle.net"
homepage "https://www.battle.net/"
installer manual: 'Battle.net-Setup.app'
installer manual: "Battle.net-Setup.app"
preflight do
set_permissions "#{staged_path}/Battle.net-Setup.app", 'a+x'
set_permissions "#{staged_path}/Battle.net-Setup.app", "a+x"
end
uninstall delete: '/Applications/Battle.net.app'
uninstall delete: "/Applications/Battle.net.app"
zap trash: [
'~/Library/Application Support/Battle.net',
'~/Library/Caches/net.battle.bootstrapper',
'~/Library/Preferences/net.battle.net.app.plist',
'~/Library/Preferences/net.battle.app.helper.plist',
'~/Library/Preferences/net.battle.Authenticator.prefs',
'~/Library/Preferences/net.battle.Identity.prefs',
'~/Library/Preferences/net.battle.plist',
'~/Library/Preferences/net.battnet.battle.plist',
'~/Library/Saved Application State/net.battle.app.savedState',
'/Users/Shared/Battle.net',
'/Users/Shared/Blizzard',
],
rmdir: '~/Blizzard'
"~/Library/Application Support/Battle.net",
"~/Library/Caches/net.battle.bootstrapper",
"~/Library/Preferences/net.battle.net.app.plist",
"~/Library/Preferences/net.battle.app.helper.plist",
"~/Library/Preferences/net.battle.Authenticator.prefs",
"~/Library/Preferences/net.battle.Identity.prefs",
"~/Library/Preferences/net.battle.plist",
"~/Library/Preferences/net.battnet.battle.plist",
"~/Library/Saved Application State/net.battle.app.savedState",
"/Users/Shared/Battle.net",
"/Users/Shared/Blizzard",
],
rmdir: "~/Blizzard"
caveats <<~EOS
If you pick an installation directory other than /Applications when installing this cask, you will need to uninstall it manually