Wrapper script for phantomjs to hide Dock icon.
Closes Homebrew/homebrew#11412. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>master
parent
257f0d7b0e
commit
1604b18a6b
|
@ -17,14 +17,16 @@ class Phantomjs < Formula
|
|||
|
||||
depends_on NeedsSnowLeopardOrNewer.new
|
||||
|
||||
def install
|
||||
bin.install "bin/phantomjs"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
PhantomJS in Homebrew currently does not hide the dock icon.
|
||||
For more information see:
|
||||
http://code.google.com/p/phantomjs/issues/detail?id=281
|
||||
def script; <<-EOS.undent
|
||||
#!/bin/sh
|
||||
# phantomjs wrapper script to hide dock icon
|
||||
# See http://code.google.com/p/phantomjs/issues/detail?id=281
|
||||
exec #{libexec}/phantomjs "$@"
|
||||
EOS
|
||||
end
|
||||
|
||||
def install
|
||||
libexec.install ['bin/phantomjs', 'bin/Info.plist']
|
||||
(bin+'phantomjs').write script
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue