Skip to content

Commit

Permalink
Add google-chrome binary shim for Google Chrome
Browse files Browse the repository at this point in the history
Puts `google-chrome` in the path.

Refs: Homebrew#18809
  • Loading branch information
gibfahn committed May 28, 2018
1 parent e61a1e7 commit b02677b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Casks/google-chrome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
depends_on macos: '>= :mavericks'

app 'Google Chrome.app'
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/google-chrome.wrapper.sh"
binary shimscript, target: 'google-chrome'

preflight do
IO.write shimscript, <<~EOS
#!/bin/bash
exec "#{appdir}/Google Chrome.app/Contents/MacOS/Google Chrome" "$@"
EOS
end

uninstall launchctl: [
'com.google.keystone.agent',
Expand Down

0 comments on commit b02677b

Please sign in to comment.