Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to checkout and BUILD specific chromium tag/branch without download the FULL source code of all history?

I don't want build master branch. Instead I would like to build a specific tag which the latest stable release as same as my Desktop Chrome.

like image 358
Ling Avatar asked Nov 03 '17 03:11

Ling


People also ask

Where do I find Chromium source code?

The project's web site is https://www.chromium.org. To check out the source code locally, don't use git clone ! Instead, follow the instructions on how to get the code. Documentation in the source is rooted in docs/README.md.

How do I download source code in Chrome?

The source code is available at https://chromium.googlesource.com/ and can be searched at https://cs.chromium.org/. Instructions for contributing can be found at https://www.chromium.org/developers.


1 Answers

This is probably the fastest way to fetch Chromium's source code. Suppose 59.0.3071.115 is the version of Chromium, you wish to build. You run this command:

git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/59.0.3071.115:chromium_59.0.3071.115

If you don't want the history to be fetched (faster fetching of Chromium source code):

git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/59.0.3071.115:chromium_59.0.3071.115 --depth 1

Now from your Chromium repo, use the following command to show a list of tags available

git tag

You have to checkout that tag by running

git checkout tags/59.0.3071.115

Then run these commands in the order listed below to pull all the third-party dependencies:

gclient sync
gclient sync --with_branch_heads
gclient runhooks

You can find the dev, beta, canary, latest and stable version info of Chromium from this page: https://www.chromium.org/developers/calendar

Now, you should be able to build Chromium. Let me know, if it works

like image 79
Asesh Avatar answered Oct 15 '22 20:10

Asesh