2018-05-18 04:38:31 -05:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
if [ ! -d '/tmp/phantomjs' ]; then
|
2018-05-21 09:11:53 -05:00
|
|
|
_version="2.1.1"
|
2018-05-18 04:38:31 -05:00
|
|
|
|
|
|
|
curl -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$_version-windows.zip > /tmp/phantomjs-win.zip
|
|
|
|
curl -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$_version-macosx.zip > /tmp/phantomjs-mac.zip
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
unzip /tmp/phantomjs-win.zip
|
|
|
|
unzip /tmp/phantomjs-mac.zip
|
|
|
|
|
|
|
|
mkdir -p /tmp/phantomjs/windows /tmp/phantomjs/darwin
|
|
|
|
|
|
|
|
cp /tmp/phantomjs-$_version-windows/bin/phantomjs.exe /tmp/phantomjs/windows/phantomjs.exe
|
|
|
|
cp /tmp/phantomjs-$_version-macosx/bin/phantomjs /tmp/phantomjs/darwin/phantomjs
|
|
|
|
fi
|