Chromium Nightly Updater Script Change

I always test the latest chromium nightlies. You get the latest goodies and it is stable most of the time.

On Mac, I use the really neat and simply applescript by Dominic Barnes. Recently, Chromium nightly locations changed. So, here is the updated script.


--Developed by Dominic Barnes
--Email: dom@dombarnes.com
--http://dombarnes.com
--Version 0.3

--find latest build number
--set the_source to do shell script "curl http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST"

set the_source to do shell script "curl http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/LATEST"

--set local directory info
set remFile to "chrome-mac.zip"
set locDir to "~/"
set locFile to "chrome-mac.zip"

--download latest build using build number in the_source
--do shell script "curl http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/" & the_source & "/" & remFile & " -o " & locDir & locFile
do shell script "curl http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/" & the_source & "/" & remFile & " -o " & locDir & locFile

--unpack and copy
do shell script "unzip -o " & locDir & locFile & " -d " & locDir

--move existing Chromium and copy new
try
do shell script "cp -pR /Applications/Chromium.app /Applications/Chromium.old.app"
do shell script "rm -R /Applications/Chromium.app"
end try

do shell script "mkdir -p /Applications/Chromium.app"
do shell script "mkdir -p /Applications/Chromium.app/Contents"
do shell script "cp -pR " & locDir & "chrome-mac/Chromium.app/Contents /Applications/Chromium.app"

--Cleanup folders and files
do shell script "rm -R " & locDir & "chrome*"
try
do shell script "rm -R /Applications/Chromium.old.app"
end try
display dialog "Chromium build " & the_source & " has been installed"

Advertisements

One thought on “Chromium Nightly Updater Script Change

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s