/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/sh tmpdir=/tmp/webkit-nightly URL=$(curl http://nightly.webkit.org/ | grep dmg | head -1 | perl -pe 's/.*(http.*dmg).*/$1/') FILE=$(basename $URL) mkdir -p $tmpdir && cd $tmpdir && curl $URL --remote-name && hdiutil attach -quiet $tmpdir/$FILE && mv /Applications/WebKit.app ~/.Trash/WebKit-`date +%Y-%m-%d_%H-%M-%s`.app/ && cp -R /Volumes/WebKit/WebKit.app /Applications/ && hdiutil detach -quiet /Volumes/WebKit && echo Installed $FILE