如何在不下载所有历史记录的完整源代码的情况下签出和构建特定的铬标签/分支? [英] How to checkout and BUILD specific chromium tag/branch without download the FULL source code of all history?
问题描述
我不想构建主分支.相反,我想构建一个与我的桌面 Chrome 相同的最新稳定版本的特定标签.
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.
推荐答案
这可能是获取 Chromium 源代码的最快方式.假设 59.0.3071.115
是您希望构建的 Chromium 版本.你运行这个命令:
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
如果您不想获取历史记录(更快地获取 Chromium 源代码):
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
现在从您的 Chromium 存储库中,使用以下命令显示可用标签列表
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
您可以从这个页面找到 Chromium 的开发、测试、金丝雀、最新和稳定版本信息:https://www.chromium.org/developers/calendar
You can find the dev, beta, canary, latest and stable version info of Chromium from this page: https://www.chromium.org/developers/calendar
现在,您应该能够构建 Chromium.如果有效,请告诉我
Now, you should be able to build Chromium. Let me know, if it works
这篇关于如何在不下载所有历史记录的完整源代码的情况下签出和构建特定的铬标签/分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!