如何在不下载所有历史记录的完整源代码的情况下检出并构建特定的铬标签/分支? [英] How to checkout and BUILD specific chromium tag/branch without download the FULL source code of all history?

查看:122
本文介绍了如何在不下载所有历史记录的完整源代码的情况下检出并构建特定的铬标签/分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想建立master分支。相反,我想构建一个特定的标记,该标记的最新稳定发行版与我的台式机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 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

最后,运行以下命令:

gclient runhooks

您可以在此页面上找到Chromium的最新稳定版本信息: https://www.chromium.org/developers/calendar

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

使用 git标签显示标签列表

您必须通过运行 git checkout tags / 59.0.3071.115 来签出该标签。

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

现在,您应该可以构建Chromium了。让我知道,如果有效

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

这篇关于如何在不下载所有历史记录的完整源代码的情况下检出并构建特定的铬标签/分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆