# MyOpenHarmony **Repository Path**: allenxxlee/my-open-harmony ## Basic Information - **Project Name**: MyOpenHarmony - **Description**: No description available - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 16 - **Created**: 2021-12-28 - **Last Updated**: 2021-12-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MyOpenHarmony #### 介绍 {**以下是 Gitee 平台说明,您可以替换此简介** Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} #### 软件架构 软件架构说明 快速知道open harmony 快速搭建环境 #### 安装教程 1. 配置linux编译环境 - 1>安装vmware虚拟机,官网下载https://www.vmware.com/cn.html - 2>安装版本,免费版VMware-player-16.1.0-17198959 - 3>然后下载Ubuntu 20版本镜像服务器版 ubuntu-20.04.2-live-server-amd64.iso https://cn.ubuntu.com/download/thank-you?version=20.04.2&architecture=amd64 - 4>虚拟机加载安装即可 2. 使用harmony环境脚本install.sh执行即可,一键式配置,下载路径https://gitee.com/dxbedu/easy-build-open-harmony/tree/master/L1 3. samba配置 链接https://jingyan.baidu.com/article/3a2f7c2ed314ef26afd611a1.html 4. 下载代码命令 - repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify - repo sync -c # 更新代码 - repo forall -c 'git lfs pull' # 更新二进制 5. 配置repo - 配置环境的token - repo config --global repo.token {TOKEN} TOKEN在码云的个人设置-安全设置-私人令牌里面生成 6.配置 push代码产生PR - repo config repo.pullrequest True 7. 通过命令提交和push代码 - git add ./ - git commit ./ - repo push -br={LOCAL_BRANCH} --d={REMOTE_BRANCH} --content={PR_CONTENT} - 实例: - repo push --br="0317_master" --d="master" --content="bug fix" - repo push --br="0317_master" --d="OpenHarmony_1.0.1_release" --content="bug fix" 代码提交成功后,会自动fork目录仓库到个人仓库中,并将本地分支推到该个人仓库中。 8. hb 安装 - 进入代码根目录执行命令 - python3 -m pip install --user build/lite/ #### 使用说明 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request