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

馋奶兔 提交于 2019-12-11 13:46:36

问题


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.


回答1:


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 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

Then run these commands to pull third-party dependencies:

gclient sync
gclient sync --with_branch_heads

Finally, run this command:

gclient runhooks

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

Use git tag to show a list of tags available.

You have to checkout that tag by running git checkout tags/59.0.3071.115.

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



来源:https://stackoverflow.com/questions/47087970/how-to-checkout-and-build-specific-chromium-tag-branch-without-download-the-full

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!