Skip to content

Instantly share code, notes, and snippets.

@ishmaelahmed
ishmaelahmed / update-chromium-mac.rb
Created October 14, 2011 12:35 — forked from remi/update-chromium-mac.rb
Running this file update /Applications/Chromium.app to the latest Chromium build.
#!/usr/bin/env ruby
require "open-uri"
if ARGV.first
build_id = ARGV.first
else
build_id = open("http://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE") { |data| data.read }
end
build_url = "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/#{build_id}/chrome-mac.zip"
local_file_path = "/tmp/chromium-#{build_id}.zip"
@ishmaelahmed
ishmaelahmed / get_latest_chromium.sh
Created October 14, 2011 12:35 — forked from jehiah/get_latest_chromium.sh
script to download the latest chromium build nightly
#!/bin/sh
## this is a quick and dirty script to automagically install the latest chromium build on OSX 10.5
## you can set this up as a nightly cron job, or run manually from the command line
# USAGE:
# save script to your home directory aka /Users/$USER/
# open up a command prompt (aka /Applications/Utilities/Terminal)
# run manually from the command line whenever you want the most recent chromium build
# $ sh get_latest_chromium.sh
# start it as a nightly task (runs at 1am or edit the plist below)