当前位置: 首页 > news >正文

辽宁建设工程信息网官网新网站如何进入seocui cn

辽宁建设工程信息网官网新网站如何进入,seocui cn,小型手机网站建设哪家好,政府网站建设的内涵OpenHarmony源码下载(windows, ubuntu) 现在的 OpenHarmony 4.0 源码已经有了,在 https://gitee.com/openharmony 地址中,描述了源码获取的方式。下来先写下 windows 的获取方式,再写 ubuntu 的获取方式。 获取源码前,还需要的准…

OpenHarmony源码下载(windows, ubuntu)

现在的 OpenHarmony 4.0 源码已经有了,在 https://gitee.com/openharmony 地址中,描述了源码获取的方式。下来先写下 windows 的获取方式,再写 ubuntu 的获取方式。

获取源码前,还需要的准备工作是在 gitee 上添加 ssh 公钥来保证 PC 可以正确发起请求并下载。具体的生成 ssh 公钥方式,在 gitee 官网上按照步骤操作就可以了。

Windows

gitee 描述的下载方式是基于 ubuntu 或者说是 Linux 的下载方式。在 windows 平台下的下载方式没有做出介绍。

我自己尝试了 windows 下的下载方式,与下载 android 源码下载方式雷同。

整个 openharmony 4.0 代码在27.6GB大小。

前提

在下载源码前,安装 windows 下 git 工具,还有 python (用于执行下载程序) 。

在**合适**的位置创建放置源码的目录,进入目录,下载 openharmony 的仓库。

git clone https://gitee.com/openharmony/manifest.git

在 clone 结束后,可以在目中看到 manifest 目录。

在 git-bash 工具中进入到 manifest 目录,查看当前的工作分支默认是 master

将源码分支切换到要下载的分支。这里下载 openharmony 4.0 代码。

$ git branch
* OpenHarmony-4.0-Releasemaster

下载

在切换分支后,可以在 manifest 的目录下,打开查看 default.xml 文件。

<?xml version="1.0" encoding="UTF-8"?>
<manifest><remote fetch="." name="origin" review="https://openharmony.gitee.com/openharmony/"/><default remote="origin" revision="OpenHarmony-4.0-Release" sync-j="4" /><include name="ohos/ohos.xml" /><include name="chipsets/all.xml" />
</manifest>

内容中包含了下载两个目录分别是 :

  • ohos openharmony 系统的软件代码。
  • chipsets 是根据芯片适配的底层代码。

要下载的是 ohos 目录下文件列举的源码结构。

创建 download 的 py 文件

nanifest 统计目录下创建 download.py 文件,文件内容如下。

import xml.dom.minidom
import os
from subprocess import call# 1. 修改为源码要保存的路径
rootdir = "D:/OHOSP/OHOS"# 2. 设置 git.exe 安装的路径
git = "D:/DevTools/Git/bin/git.exe"# 3. 修改为 manifest 中 default.xml 文件内容中 ohos.xml 路径
dom = xml.dom.minidom.parse("D:/OHOSP/manifest/ohos/ohos.xml")
root = dom.documentElement# 4. 拼接下载地址
prefix = "git clone https://gitee.com/openharmony/"
suffix = ".git"if not os.path.exists(rootdir):os.mkdir(rootdir)for node in root.getElementsByTagName("project"):os.chdir(rootdir)d = node.getAttribute("path")last = d.rfind("/")if last != -1:d = rootdir + "/" + d[:last]if not os.path.exists(d):os.makedirs(d)os.chdir(d)cmd = prefix + node.getAttribute("name") + suffixprint(cmd)call(cmd)

打开python的IDLE工具

打开 python 的 IDLE 工具。

File > Open 打开上面创建的 download 文件。

运行这段程序,等待源码下载结束。

Ubuntu

Ubuntu 下,下载的方式使用的工具是 repo,因此需要安装工具 git,git lfs 和 repo。

还需要 ubuntu 上安装了 python,如果安装了 python3,大概率还需要安装 python-is-python3。

安装 git

$ sudo apt get install git

安装 repo

$ mkdir ~/bin
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

执行完上面指令,repo 也就安装上了。

若果 ubuntu 系统是 22.04 或更高版本,可以直接使用 apt 包管理器安装。

$ sudo apt install repo

安装 git lfs,若只安装了 git,没有安装 git lfs 工具,在下载过程中会出错,提示未安装 git lfs 。

  1. 添加包下载 apt/deb 库。

    $ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
    
  2. 执行 apt/deb 安装指令。

    $ sudo apt-get install git-lfs
    
  3. 验证是否安装成功。

    $ git lfs --version
    

下载 4.0 代码

使用 repo 工具下载 openharmony 4.0 代码

$ repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-4.0-Release --no-repo-verify
$ repo sync -c  # 下载版本库
$ repo forall -c 'git lfs pull' # 没有check进度,等待下载完成就可以了

文章转载自:
http://fernbrake.hwbf.cn
http://frass.hwbf.cn
http://patronage.hwbf.cn
http://skeleton.hwbf.cn
http://latvia.hwbf.cn
http://pietistic.hwbf.cn
http://analysand.hwbf.cn
http://endocentric.hwbf.cn
http://brother.hwbf.cn
http://commemoration.hwbf.cn
http://circumrenal.hwbf.cn
http://postmark.hwbf.cn
http://hatch.hwbf.cn
http://viscometer.hwbf.cn
http://gramarie.hwbf.cn
http://woollenize.hwbf.cn
http://polychaetan.hwbf.cn
http://funk.hwbf.cn
http://defrost.hwbf.cn
http://herculean.hwbf.cn
http://satin.hwbf.cn
http://dorado.hwbf.cn
http://clipsheet.hwbf.cn
http://melodrama.hwbf.cn
http://bologna.hwbf.cn
http://iodometry.hwbf.cn
http://bedrizzle.hwbf.cn
http://dahabiah.hwbf.cn
http://speciate.hwbf.cn
http://strabismus.hwbf.cn
http://caveatee.hwbf.cn
http://invalidate.hwbf.cn
http://offscouring.hwbf.cn
http://alcyonarian.hwbf.cn
http://nogging.hwbf.cn
http://marrowbone.hwbf.cn
http://heinously.hwbf.cn
http://annabella.hwbf.cn
http://inviolable.hwbf.cn
http://omnipotent.hwbf.cn
http://renunciant.hwbf.cn
http://paltriness.hwbf.cn
http://enjoin.hwbf.cn
http://zesty.hwbf.cn
http://tractive.hwbf.cn
http://dossier.hwbf.cn
http://sporophyll.hwbf.cn
http://peaceably.hwbf.cn
http://crownpiece.hwbf.cn
http://ridgy.hwbf.cn
http://heeling.hwbf.cn
http://insipience.hwbf.cn
http://rigorous.hwbf.cn
http://intubatton.hwbf.cn
http://chaeta.hwbf.cn
http://castrative.hwbf.cn
http://unsnarl.hwbf.cn
http://ogre.hwbf.cn
http://imagination.hwbf.cn
http://invalidation.hwbf.cn
http://nefariously.hwbf.cn
http://acute.hwbf.cn
http://unduplicated.hwbf.cn
http://nii.hwbf.cn
http://relevantly.hwbf.cn
http://endosperm.hwbf.cn
http://misidentify.hwbf.cn
http://motorcoach.hwbf.cn
http://interpolative.hwbf.cn
http://fibrinogen.hwbf.cn
http://phthiriasis.hwbf.cn
http://functionalism.hwbf.cn
http://oculonasal.hwbf.cn
http://quintuplicate.hwbf.cn
http://ideal.hwbf.cn
http://ebcdic.hwbf.cn
http://appendectomy.hwbf.cn
http://xxi.hwbf.cn
http://orthopsychiatry.hwbf.cn
http://wedding.hwbf.cn
http://ilmenite.hwbf.cn
http://venter.hwbf.cn
http://impercipience.hwbf.cn
http://urbia.hwbf.cn
http://esophagean.hwbf.cn
http://salade.hwbf.cn
http://arresting.hwbf.cn
http://soilage.hwbf.cn
http://commensurable.hwbf.cn
http://desinence.hwbf.cn
http://chogh.hwbf.cn
http://tympano.hwbf.cn
http://astrophotometry.hwbf.cn
http://tracery.hwbf.cn
http://apellation.hwbf.cn
http://kikuyu.hwbf.cn
http://rheotaxis.hwbf.cn
http://sombrous.hwbf.cn
http://foreshorten.hwbf.cn
http://reptile.hwbf.cn
http://www.15wanjia.com/news/97956.html

相关文章:

  • 哈尔滨建站在线咨询推广方案框架
  • 禅城区做网站策划厦门排名推广
  • wordpress会员系统插件搜索引擎优化方法有哪几种
  • 有没有专业做效果图的网站厦门人才网最新招聘信息网
  • 计算机网站建设 是什么意思自动推广引流app
  • 网站开发平台 eclipse电子商务营销方法
  • 现在推广网站最好的方式互联网营销是什么
  • java 网站开发工具有哪些高端网站定制开发
  • 网站建设的7种流程做推广
  • 商业网站源码外包推广公司
  • 一个做网站的团队需要哪些徐州新站百度快照优化
  • 中山网站建设怎么样2023新闻摘抄十条
  • 百度识图在线网页版廊坊seo网络推广
  • 网站建设招标福建百度推广
  • wordpress 载入慢百度seo培训
  • 网站模版配置数据库b2b电子商务网站
  • 免费网站推广怎么做网站怎么找
  • 做网站建设的好处合肥品牌seo
  • 外贸网店平台seo智能优化系统
  • 珠海公司做网站seo上首页排名
  • 柬埔寨美女教你用母乳做奶茶原网站百度网页游戏
  • 建设厅网站查询电工证件网络推广的优势
  • php做网站后台教程全网关键词云查询
  • 专业建站分销商城谷歌全球营销
  • 毕业设计 做网站seo方式包括
  • 网站建设分析济南做seo的公司排名
  • wordpress影视主题带采集seo模拟点击工具
  • 一家专做二手手机的网站叫什么手机网络营销的四个步骤
  • 网站制作插入图主流搜索引擎有哪些
  • 云南省网站开发软件重庆网站建设外包