Skip to content

Instantly share code, notes, and snippets.

@jamie
Created October 3, 2013 18:43
Show Gist options
  • Select an option

  • Save jamie/6814882 to your computer and use it in GitHub Desktop.

Select an option

Save jamie/6814882 to your computer and use it in GitHub Desktop.
Chromium!
#!/usr/bin/env ruby
require 'open-uri'
site = "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac"
latest = open("#{site}/LAST_CHANGE").read
url = "#{site}/#{latest}/chrome-mac.zip"
dest = if File.exist?(File.expand_path "~/Applications")
"~/Applications"
else
"/Applications"
end
`curl -LO #{url} && unzip chrome-mac.zip && rm -rf #{dest}/Chromium.app && mv chrome-mac/Chromium.app #{dest}/ && rm -r chrome-mac && rm chrome-mac.zip`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment