Automatically update WebKit via script and launchd
Apr 15, '08 07:30:00AM • Contributed by: Anonymous
Apr 15, '08 07:30:00AM • Contributed by: Anonymous
WebKit doesn't have any way to automatically update to the latest nightly build, so I put together a quick script to do so.
It has the option of automatically backing up the currently installed version of WebKit, or just removing the old version and updating to the newer version. There's also optional logging of the old WebKit build, the new WebKit build, and what time it was replaced. By creating a launchd agent, it can be run automatically every night. The script is: A sample plist for a launchd agent looks like this: Alternately, you can download the script here, and the plist here.
[robg adds: This script worked as described, though I didn't test the launchd agent. Depending on your connection speed, it may take a few minutes to run, so give it time.]
It has the option of automatically backing up the currently installed version of WebKit, or just removing the old version and updating to the newer version. There's also optional logging of the old WebKit build, the new WebKit build, and what time it was replaced. By creating a launchd agent, it can be run automatically every night. The script is: A sample plist for a launchd agent looks like this: Alternately, you can download the script here, and the plist here.
[robg adds: This script worked as described, though I didn't test the launchd agent. Depending on your connection speed, it may take a few minutes to run, so give it time.]
•
[15,002 views]
