代码拉取完成,页面将自动刷新
本仓脚本用于项目中下载ohos
分支代码使用,省去下载代码时找对应分支的命令麻烦
因每个人当第一次使用该脚本下载代码的时候会提示设置代码下载的路径,然后会将该路径保存在本地的.config
文件中,后面再次下载则不再提示
~/OpenHarmony
里面.
,则表示保存在脚本所在的目录下面运行效果如下:
first download code, please set code download path, default is ~/OpenHarmony
. # 这里输入想存放的路径
脚本运行后如下所示,后续添加其他版本可能有增加,以实际效果为准
*******************************************
* Welcome to download OpenHarmony Code *
* Please Choice OpenHarmony SDK: *
* OpenHarmony Version *
* OpenHarmony master prese 1.1 *
* OpenHarmony-3.0-LTS press 1.2 *
* OpenHarmony-3.1-Release press 1.3 *
* OpenHarmony-3.2-Release press 1.4 *
* OpenHarmony-4.1-Release press 1.5 *
* OpenHarmony-v3.0-LTS press 1.20 *
* OpenHarmony-v3.2-Release press 1.21 *
* OpenHarmony-v3.2.2-Release press 1.22 *
* OpenHarmony-v4.0-Release press 1.23 *
* OpenHarmony-v4.1-Release press 1.24 *
* OpenHarmony-clang-master press 1.30 *
* Qemu Version *
* qemu-riscv64 press 2.1 *
* Thead Version *
* thead-v3.2.2-release press 3.1 *
* thead-tablet press 3.2 *
* thead-cartablet press 3.3 *
* thead-cloud press 3.4 *
* dayu800-v4.1-release press 3.10 *
* dayu800-v4.0-release press 3.11 *
* dayu800-3.2-Release-TPC press 3.12 *
* dayu800-v3.2.2-Release-TPC press 3.13 *
* chromium press 3.21 *
* dayu800-develop press 3.30 *
* dayu800-tmp press 3.31 *
* rk_v4.0_debug press 3.40 *
* Riscv Adapt Version *
* riscv-master press 4.1 *
* riscv-weekly0905 press 4.2 *
* riscv-3.2-Release press 4.3 *
* Custom Tag *
* weekly_2023090 press 6.1 *
* dayu800-tpc press 6.2 *
* Remora *
* remora_rk3588 press 7.1 *
* remora_dayu800 press 7.2 *
* thead_dayu800 press 7.3 *
*******************************************
OpenHarmony Version
表示下载的ohos
官方的对应分支
OpenHarmony master
:表示OpenHarmony
官方master
分支源代码OpenHarmony-3.0-LTS
:表示OpenHarmony
官方OpenHarmony-3.0-LTS
分支源代码OpenHarmony-3.1-Release
:表示OpenHarmony
官方OpenHarmony-3.1-Release
分支源代码OpenHarmony-3.2-Release
:表示OpenHarmony
官方OpenHarmony-3.2-Release
分支源代码OpenHarmony-4.1-Release
:表示OpenHarmony
官方OpenHarmony-4.1-Release
分支源代码OpenHarmony-v3.0-LTS
:表示OpenHarmony
官方OpenHarmony-v3.0-LTS
的tag源代码OpenHarmony-v3.2-Release
:表示OpenHarmony
官方OpenHarmony-v3.2-Release
的tag源代码OpenHarmony-v3.2.2-Release
:表示OpenHarmony
官方OpenHarmony-v3.2.2-Release
的tag源代码OpenHarmony-v4.0-Release
:表示OpenHarmony
官方OpenHarmony-v4.0-Release
的tag源代码OpenHarmony-v4.1-Release
:表示OpenHarmony
官方OpenHarmony-v4.1-Release
的tag源代码OpenHarmony clang-master
:表示OpenHarmony
官方clang
工具链master
分支源代码Qemu Version
表示下载的qemu
项目的对应分支
qemu-riscv
:表示qemu项目开发的代码分支Thead Version
表示下载的thead
项目的对应分支
thead-v3.2.2-release
:表示基于OpenHarmony
的OpenHarmony-v3.2.2-Release
的tag适配的th1520代码thead-tablet
:基于OpenHarmony
的OpenHarmony-v3.2.2-Release
的tag适配的th1520的平板项目代码thead-cartablet
:基于OpenHarmony
的OpenHarmony-v3.2.2-Release
的tag适配的th1520的车载平板项目代码thead-cloud
:基于OpenHarmony
的OpenHarmony-v3.2.2-Release
的tag适配的th1520的云桌面项目代码dayu800-v4.1-release
:表示基于OpenHarmony
的OpenHarmony-v4.1-Release
的tag适配的dayu800代码dayu800-v4.0-release
:表示基于OpenHarmony
的OpenHarmony-v4.0-Release
的tag适配的dayu800代码dayu800-3.2-Release-TPC
:已经废弃dayu800-v3.2.2-Release-TPC
:已经废弃chromium
:表示基dayu800的chromium代码下载dayu800-develop
:已经废弃dayu800-tmp1
:已经废弃 rk_v4.0_debug
:已经废弃 说明: thead
的代码在内网中,除项目内人员,其他人员无权下载
Riscv Adapt Version
表示riscv
架构上OpenHarmony
对应分支
riscv-master
:表示riscv sig
组织的master
分支代码riscv-weekly0905
:表示riscv sig
组织的weekly0905
分支代码riscv-3.2-Release
:表示riscv sig
组织的OpenHarmony-3.2-Release
分支代码**说明:**Custom Tag和Remora不用关注,项目版本
脚本会在1.2 配置的路径下创建对应的代码版本路径,如果对应的代码版本路径已经存在则会生成一个带_tmp
后缀的路径,如果该路径仍然存在,则会提示让手动输入路径名字(仅仅是目录的名字而不是完整的路径),如果仍然存在,则程序直接退出,具体的路径在脚本运行下载代码结束后的log
中有说明,同样脚本所要执行的下载命令log
中也会显示打印出来,如下所示:
================================================================================================
you have been download riscv64-qemu OpenHarmony-3.2-Beta2 code
url : https://isrc.iscas.ac.cn/gitlab/riscv/polyosmobile/ohos_qemu/manifest.git
branch : OpenHarmony-3.2-Beta2
xml_name :
code_path : /home/wen_fei/OpenHarmony1/ohos_qemu_riscv64
init cmd: repo init -u https://isrc.iscas.ac.cn/gitlab/riscv/polyosmobile/ohos_qemu/manifest.git -b OpenHarmony-3.2-Beta2 -m ohos_qemu.xml --no-repo-verify
sync cmd: repo sync -c
lfs cmd: repo forall -c 'git lfs pull'
set_br cmd: repo start OpenHarmony-3.2-Beta2 --all
================================================================================================
说明: 重复路径操作方法
you have already exist following path:
/home/wen_fei/OpenHarmony/thead-3.2-beta2
/home/wen_fei/OpenHarmony/thead-3.2-beta2_tmp
please input the path name you want to download code
if you want to delete the /home/wen_fei/OpenHarmony/thead-3.2-beta2_tmp directly and then download it again, please press Enter.
test # 直接输入要存放代码的路径名
================================================================================================
you have been download thead-3.2-beta2 OpenHarmony-3.2-Beta2 code
url : https://10.20.72.61/gitlab.com/ohos/manifest.git
branch : OpenHarmony-3.2-Beta2
xml_name :
code_path : /home/wen_fei/OpenHarmony/test
init cmd: repo init -u https://10.20.72.61/gitlab.com/ohos/manifest.git -b OpenHarmony-3.2-Beta2 -m thead_develop.xml --no-repo-verify
sync cmd: repo sync -c
lfs cmd: repo forall -c 'git lfs pull'
set_br cmd: repo start OpenHarmony-3.2-Beta2 --all
================================================================================================
download code success ^_^
git clone https://gitee.com/personal-summary/code_download.git
cd code_download
./code_download.sh
# 输入所需下载的分支,例如:3.2表示要下载Thead 3.2beta2分支
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。