Automatically update WebKit via script and launchd
Tue, Apr 15 2008 at 7:30AM PDT • Contributed by: Anonymous
Tue, Apr 15 2008 at 7:30AM PDT • 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.]
•
[8,445 views]
