Reputation: 79725
I thought this would be easy but I can't find any link to a simple tar.gz/tar.bz2/zip archive.
Chrome uses some custom tools like build_depot
to even download the source code. But I don't want to compile the source code, I just want to see how they do something in the source code.
So all I need is the source code download link, in the simplest possible form. Is there any way at all to find a zip archive containing all the source code, without reading howtos and building and compiling tools just to be able to download it?
Even old versions would do. I don't need to compile anything, I just need the code, and there are no download links to that.
Upvotes: 17
Views: 27102
Reputation: 1574
Looked at it and it seems on the get the code page there is no mention of a single simple file download - presumably because it's for people actually willing to develop and work with these sources, and the code-base is complex and needs extra tools (it's similar to Android, which is managed by git but there is a special tool to manage the multitude of single repositories that need to be orchestrated).
So if your just curious to look at one version of the sources, you can browse the code to the tag/revision you like and get the tgz link. For example, the last known good revision lkgr: https://chromium.googlesource.com/chromium/src/+/lkgr
Upvotes: 6
Reputation: 52062
There is a mirror at: https://github.com/chromium/chromium
Try:
git clone --depth 1 https://github.com/chromium/chromium.git
Upvotes: 2
Reputation: 1774
There's an enormous archive at https://gsdview.appspot.com/chromium-browser-official/. It contains all versions starting at 14.0, including every daily subversion (14.0.783.0, 14.0.784.0, etc), up to 75.0.3755.0 released yesterday (as of writing).
Unfortunately, the interface is paginated and contains no page jump, so you'll need ~30 clicks on Next Page to reach latest Chrome; as of writing, the quick link to latest is https://gsdview.appspot.com/chromium-browser-official/?marker=chromium-74.0.3711.0.tar.xz.hashe%40.
These tarballs are also .xz rather than .gz; the accepted answer links to a 2.2GiB download, while 75.0.3755.0 at the archive is 721MiB.
Upvotes: 5
Reputation:
it WORKS. (spoon feed documentation version 1)
Step 1:
wget https://src.chromium.org/svn/trunk/tools/depot_tools.zip
unzip_to C:\depot_tools.zip
Step 2:
cmd.exe
gclient
Step 3:
setup environment
Step 4:
Step 5:
step 4 is active, downloading source code, can take above 8GB to 15GB
wait for 4 hours
Step 6:
download visual studio 2013 https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
make sure its update 1 or update 4
setup the environment value
Step 7:
gclient runhooks
(https://stackoverflow.com/a/30314754/285594)
wait half an hour
Step 8:
compile/build
wait 2 hour
Upvotes: 5
Reputation: 7844
Here is an updated way to do it
git clone --depth 1 https://chromium.googlesource.com/chromium/src.git chromium
The depth
argument results in a shallow clone so that you don't pull down the massive history. You can remove it if you want full copy.
This still requires git
, but it doesn't require you to install a bunch of custom tools that may mess up your whole system.
Upvotes: 10
Reputation: 90496
On the Get the code page you have a link to the source tarball.
Upvotes: 19