简体   繁体   English

下载特定的Chromium修订版源代码

[英]Download specific Chromium revision source code

I am using CEF3 to build an application. 我正在使用CEF3来构建应用程序。 I have encountered a bug and thus debugging requires some Chromium source code. 我遇到了一个错误,因此调试需要一些Chromium源代码。

I have managed to use https://sites.google.com/a/chromium.org/dev/developers/how-tos/get-the-code and downloaded what I think is the latest source code. 我设法使用了https://sites.google.com/a/chromium.org/dev/developers/how-tos/get-the-code,并下载了我认为是最新的源代码。 However CEF uses revision 33.0.1750.170 and the source code has a total of almost 15gb on my machine - I think this is because git downloads all file history. 但是,CEF使用的修订版是33.0.1750.170,而我的计算机上的源代码总计接近15gb-我认为这是因为git下载了所有文件历史记录。

Could somebody please provide me with instructions of how I can download just the 33.0.1750.170 files or how I could use my current download to maybe checkout that revision into another directory? 有人可以向我提供有关如何仅下载33.0.1750.170文件或如何使用当前下载内容将该版本检出到另一个目录的说明吗?

Once you have the git repo cloned, you can do something like this: 克隆git repo后,您可以执行以下操作:

git checkout tags/33.0.1750.170

This is because Chromium "tags" their releases, as documented on the page you linked. 这是因为Chromium“标记”了它们的发布,如您链接的页面中所述。

Once you do that, your working directory will contain the code for the requested release. 完成后,您的工作目录将包含所请求版本的代码。 There's no way to clone only that release, you need to get the entire 15 GB first, then go to the revision you want. 无法仅克隆该发行版,您需要首先获得整个15 GB,然后转到所需的修订版。

Use git tag -l to list all available tags. 使用git tag -l列出所有可用的标签。 See Download a specific tag with Git 请参阅使用Git下载特定标签

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM