mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
1.4 KiB
1.4 KiB
| layout | category | mirrorid | permalink |
|---|---|---|---|
| help | help | chromiumos | /help/chromiumos/ |
Chromium OS 镜像使用帮助
Chromium OS is an open-source project that aims to build an operating system that provides a fast, simple, and more secure computing experience for people who spend most of their time on the web.
准备工作
下载 repo 工具:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
或者使用tuna的[git-repo镜像](https://{{ site.host }}/help/git-repo/)
下载代码
建立工作目录:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
初始化仓库:
repo init -u https://{{ site.host }}/git/chromiumos/chromiumos/manifest
注意: 本镜像是 Chromium OS 的 master 分支的镜像,如果使用本镜像下载 Chromium OS 的其他版本很大概率会失败
如果提示无法连接到 gerrit.googlesource.com,请参照git-repo的帮助页面的更新一节。
接着使用编辑器打开.repo/manifests/_remotes.xml这个文件,将
"https://chromium.googlesource.com"
替换为
"https://{{ site.host }}/git/chromiumos/"
接着将
"https://android.googlesource.com"
替换为
"https://aosp.tuna.tsinghua.edu.cn/"
即可。
最后同步源码树(以后只需执行这条命令来同步):
repo sync