From 290290aed1f416dbdc8962865a7c3c6a336f1fe8 Mon Sep 17 00:00:00 2001 From: duangavin123 Date: Mon, 18 Oct 2021 16:39:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20=E5=AF=BC=E5=85=A5OpenHarmony?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: duangavin123 --- en/device-dev/get-code/sourcecode-acquire.md | 302 +++++++----------- .../device-dev/get-code/sourcecode-acquire.md | 34 +- 2 files changed, 139 insertions(+), 197 deletions(-) diff --git a/en/device-dev/get-code/sourcecode-acquire.md b/en/device-dev/get-code/sourcecode-acquire.md index 89ca0277cb4..6303b3263c6 100644 --- a/en/device-dev/get-code/sourcecode-acquire.md +++ b/en/device-dev/get-code/sourcecode-acquire.md @@ -2,36 +2,36 @@ - [About OpenHarmony](#section6370143622110) - [Overview of Source Code Acquisition](#section12763342204) -- [Method 1: Acquiring Source Code from a Code Repository](#section537312010229) +- [Method 1: Acquiring Source Code from the Gitee Code Repository](#section537312010229) - [When to Use](#section10881513459) - [Prerequisites](#section102871547153314) - [How to Use](#section429012478331) -- [Method 2: Acquiring Source Code from HPM](#section463013147412) +- [Method 2: Acquiring Source Code from DevEco Marketplace](#section463013147412) - [When to Use](#section26661067443) - [Prerequisites](#section17544943123315) - [How to Use](#section954619433333) -- [Method 3: Acquiring Source Code from Image Sites](#section1186691118430) -- [Method 4: Acquiring Source Code from the GitHub Image Repository](#section23448418360) +- [Method 3: Acquiring Source Code from a Mirror Site](#section1186691118430) +- [Method 4: Acquiring Source Code from the GitHub Image Repository \(at 23:00 UTC Every Day\)](#section23448418360) - [Source Code Directories](#section1072115612811) ## About OpenHarmony OpenHarmony is an open-source project launched by the OpenAtom Foundation. The purpose of this project is to build an open, distributed operating system \(OS\) framework for smart IoT devices in the full-scenario, full-connectivity, and full-intelligence era. -The open-source code repositories are available at [https://openharmony.gitee.com](https://openharmony.gitee.com). +The open-source code repositories are available at [https://openharmony.gitee.com](https://openharmony.gitee.com). ## Overview of Source Code Acquisition -This document describes how to acquire OpenHarmony source code and provides its directory structure. The OpenHarmony code is open to you as [bundles](../bundles/bundles-standard-rules.md), which can be obtained in any of the following ways: +This document describes how to acquire OpenHarmony source code and provides its directory structure. The OpenHarmony code is open to you as [bundles](../bundles/bundles-standard-rules.md), which can be obtained in any of the following ways: -- **Method 1**: Acquire the source code from a code repository. You can use the**repo**or**git** tool to download the latest code from the code repository. -- **Method 2**: Acquire the source code from the HarmonyOS Package Manager \(HPM\). Visit the [HPM](https://hpm.harmonyos.com/#/en/home) website, search for your desired open-source distribution, and download the bundle list \(or customize bundles and download the bundle list\). Then use **hpm-cli** to download and install the bundles and compilation toolchain on your local PC. +- **Method 1**: Acquire the source code from the Gitee code repository. You can use the **repo** or **git** tool to download the latest code from the code repository. +- **Method 2**: Acquire the source code from [DevEco Marketplace](https://repo.harmonyos.com/#/en/home). Visit [DevEco Marketplace](https://repo.harmonyos.com/#/en/home), search for your desired open-source distribution, and download the bundle list \(or customize bundles and download the bundle list\). Then use **hpm-cli** to download and install the bundles and compilation toolchain on your local PC. - **Method 3**: Download the compressed file of a distribution from a mirror site. This method provides a fast download speed, so you can also use this method for obtaining the source code of an earlier version. -- **Method 4**: Acquire the source code from the GitHub image repository. You can use the **repo**or **git**tool to download the latest code from the code repository. +- **Method 4**: Acquire the source code from the GitHub image repository. You can use the **repo** or **git** tool to download the latest code from the code repository. -## Method 1: Acquiring Source Code from a Code Repository +## Method 1: Acquiring Source Code from the Gitee Code Repository ### When to Use @@ -50,7 +50,7 @@ This document describes how to acquire OpenHarmony source code and provides its 1. Register your account with Gitee. 2. Register an SSH public key for access to Gitee. -3. Install the [git client](http://git-scm.com/book/en/v2) and [git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading), and configure basic user information. +3. Install the [git client](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading), and configure basic user information. ``` git config --global user.name "yourname" @@ -58,10 +58,10 @@ This document describes how to acquire OpenHarmony source code and provides its git config --global credential.helper store ``` -4. Run the following commands to install the **repo** tool: +4. Run the following commands to install the **repo** tool: ``` - curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable. + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable. chmod a+x /usr/local/bin/repo pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests ``` @@ -69,14 +69,14 @@ This document describes how to acquire OpenHarmony source code and provides its ### How to Use -**Obtaining the Source Code for Mini/Small/Standard Systems \(2.0 Canary\)** +**Obtaining the Source Code for Mini/Small/Standard Systems** >![](../public_sys-resources/icon-note.gif) **NOTE:** ->You can obtain the latest features from the master code, and develop commercial functionalities based on the release code, which is more stable. +>Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities. - **Obtaining OpenHarmony master code** - Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to Gitee.\) + Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to Gitee.\) ``` repo init -u git@gitee.com:openharmony/manifest.git -b master --no-repo-verify @@ -84,7 +84,7 @@ This document describes how to acquire OpenHarmony source code and provides its repo forall -c 'git lfs pull' ``` - Method 2: Use the **repo** tool to download the source code over HTTPS. + Method 2: Use the **repo** tool to download the source code over HTTPS. ``` repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify @@ -93,38 +93,28 @@ This document describes how to acquire OpenHarmony source code and provides its ``` -- **Obtaining latest OpenHarmony\_1.0.1\_release code** +- **Obtaining OpenHarmony release code** - >![](../public_sys-resources/icon-note.gif) **NOTE:** - >Currently, only the source code for mini and small systems can be obtained through this release. + For details about how to obtain the source code of an OpenHarmony release, see the [Release-Notes](../../release-notes/Readme.md). - Use the **repo** tool to download the release code. - ``` - repo init -u https://gitee.com/openharmony/manifest.git -b OpenHarmony_1.0.1_release --no-repo-verify - repo sync -c - repo forall -c 'git lfs pull' - ``` - -- For details about how to obtain the source code of other OpenHarmony releases, see the [Release-Notes](../../release-notes/Readme.md). - -## Method 2: Acquiring Source Code from HPM +## Method 2: Acquiring Source Code from DevEco Marketplace ### When to Use -If OpenHarmony is new to you, sample solutions are helpful to your development. You can obtain an open-source distribution from the [HPM](https://hpm.harmonyos.com/#/en/home) website, or customize a distribution by adding or deleting bundles of an open-source distribution. Then use **hpm-cli** to download and install the bundles and compilation toolchain on your local PC. +If OpenHarmony is new to you, sample solutions are helpful to your development. You can obtain an open-source distribution from [DevEco Marketplace](https://repo.harmonyos.com/#/en/home), or customize a distribution by adding or deleting bundles of an open-source distribution. Then use **hpm-cli** to download and install the bundles and compilation toolchain on your local PC. ### Prerequisites -You must install **Node.js** and HPM on your local PC. The installation procedure is as follows: +You must install **Node.js** and HPM on your local PC. The installation procedure is as follows: -1. Install **Node.js**. +1. Install **Node.js**. - Download **Node.js** from its official website and install it on your local PC. + Download **Node.js** from its official website and install it on your local PC. - You are advised to install [Node.js](https://nodejs.org/) 12.x \(including npm 6.14.4\) or a later version \(12.13.0 or later is recommended\). + The [Node.js](https://nodejs.org/) version must be 12.x \(including npm 6.14.4\) or later. An LTS version is recommended. -2. Install the hpm-cli tool using **npm** delivered with **Node.js**. +2. Install the hpm-cli tool using **npm** delivered with **Node.js**. Open the CMD window and run the following command: @@ -148,110 +138,137 @@ You must install **Node.js** and HPM on your local PC. The installation procedur ### How to Use 1. Search for distributions. - 1. Access the [HPM](https://hpm.harmonyos.com/#/en/home) page, and click the **Distribution** tab, as shown in the following figure. - 2. Enter a keyword \(for example: **camera**\) in the search box. All matched distributions are found. - 3. Specify filter criteria, such as the bundle type \(for example: **Board support** and **Kernel support**\), to further filter the distributions. + 1. Access [DevEco Marketplace](https://repo.harmonyos.com/#/en/home), and click **Equipment Bundle**. + 2. Enter a keyword, for example, **camera**, in the search box, and click the search icon. All matched distributions will be displayed on the **Open Source Distribution** page. + 3. Specify filter criteria, such as the category, OS, kernel, and board, to further filter the distributions. 4. Find your desired distribution and click it to view details. - **Figure 1** HPM page - ![](figure/hpm-page.png "hpm-page") + **Figure 1** HPM page + ![](figures/hpm-page.png "hpm-page") 2. Learn more about the distribution. - 1. Read carefully the information about the distribution to learn its application scenarios, features, bundles, usage, and customization methods, as shown in the following figure. - 2. Click **Download** to download the distribution to your local PC. - 3. Click **Custom** to add or delete bundles of the distribution. + 1. Read the information about the distribution to learn its application scenarios, features, bundles, usage, and customization methods, as shown in the following figure. + 2. Click **Download** to download the distribution to your local PC. + 3. Click **Custom** to add or delete bundles of the distribution. - **Figure 2** Example distribution - ![](figure/example-distribution.png "example-distribution") + **Figure 2** Example distribution + ![](figures/example-distribution.png "example-distribution") 3. Customize bundles. - 1. Access the **Custom solution** page, as shown in the following figure. - 2. Set the toggle switch next to a specific optional bundle to delete it from the distribution, or click **Add bundle** to add new bundles. + 1. Access the **Custom solution** page, as shown in the following figure. + 2. Set the toggle switch next to a specific optional bundle to delete it from the distribution, or click **Add bundle** to add new bundles. 3. Enter the basic information about your project, including the bundle name, version, and description, on the right pane. - 4. Click **Download**. The system then generates the OpenHarmony code structure file \(for example, **my\_cust\_dist.zip**\) and saves it to your local PC. + 4. Click **Download**. The system then generates the OpenHarmony code structure file \(for example, **my\_cust\_dist.zip**\) and saves it to your local PC. - **Figure 3** Customizing bundles - ![](figure/customizing-bundles.png "customizing-bundles") + **Figure 3** Customizing bundles + ![](figures/customizing-bundles.png "customizing-bundles") -4. Download and install bundles. - 1. Decompress the downloaded file using the CLI tool CMD \(shell in Linux\). - 2. In the generated directory, run the **hpm install** command. - 3. The downloaded bundles are stored in the **ohos\_bundles** folder under the project directory. \(The source code of some bundles will be copied to a specified directory after the bundles are installed.\) +4. Install bundles. + 1. Decompress the downloaded code structure file using CMD on Windows \(or shell in Linux\). + 2. In the generated directory, run the **hpm install** command to download and install bundles. If the **Install successful** message is displayed, the command has been executed successfully. + 3. The downloaded bundles will be stored in the **ohos\_bundles** folder under the project directory. \(The source code of some bundles will be copied to a specified directory after the bundles are installed.\) -## Method 3: Acquiring Source Code from Mirror Sites +## Method 3: Acquiring Source Code from a Mirror Site To ensure the download performance, you are advised to download the source code or the corresponding solution from the image library of the respective site listed in the table below. ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- The table below provides only the sites for downloading the latest OpenHarmony master and LTS code. For details about how to obtain the source code of earlier versions, see the [Release-Notes](../../release-notes/Readme.md). +>![](../public_sys-resources/icon-note.gif) **NOTE:** +>- The table below provides only the sites for downloading the latest OpenHarmony master and LTS code. For details about how to obtain the source code of earlier versions, see the [Release-Notes](../../release-notes/Readme.md). >- The Master 1.0 version is no longer maintained. -**Table 1** Sites for acquiring source code +**Table 1** Sites for acquiring source code -

LTS Code

+ + - - - + + + + - - - - - - - - - - - - - - - - - + + + + + - + + + + + - - - - @@ -308,13 +325,13 @@ To ensure the download performance, you are advised to download the source code - - - -

LTS Code

+

Version Information

Version Information

+

Site

Site

+

SHA-256 Verification Code

SHA-256 Verification Code

+

Full code (for mini, small, and standard systems)

+

3.0

+

Download

+

Download

Full code (for mini and small systems)

+

Standard system solution (binary)

1.1.2

+

3.0

Download

+

Download

Download

+

Download

Hi3861 solution (binary)

1.1.2

+

3.0

Download

+

Download

Download

+

Download

Hi3518 solution (binary)

1.1.2

+

3.0

Download

+

Download

Download

+

Download

Hi3516 solution (binary)

+

Hi3516 solution-LiteOS (binary)

1.1.2

+

3.0

Download

+

Download

Download

+

Download

Release notes

+

Hi3516 solution-Linux (binary)

1.1.2

+

3.0

Download

+

Download

+

Download

+

RELEASE-NOTES

+

3.0

+

Download

-

Master Code

+

Master Code

+

Version Information

+

Site

+

SHA-256 Verification Code

+

Beta version (for standard systems)

Version Information

+

2.2 Beta2

Site

+

Download

SHA-256 Verification Code

+

Download

Full code (for standard systems)

@@ -299,7 +316,7 @@ To ensure the download performance, you are advised to download the source code

Download

Release notes

+

RELEASE-NOTES

1.0 (no longer maintained)

-

Compiler Toolchain

+

Compiler Toolchain

Version Information

+

Version Information

Site

+

Site

SHA-256 Verification Code

+

SHA-256 Verification Code

Compiler toolchain

@@ -329,182 +346,107 @@ To ensure the download performance, you are advised to download the source code
+## Method 4: Acquiring Source Code from the GitHub Image Repository \(at 23:00 UTC Every Day\) -## Method 4: Acquiring Source Code from the GitHub Image Repository (at 23:00 UTC Every Day) +Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to GitHub. For details, see [Adding a new SSH key to your GitHub account](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account).\) +``` +repo init -u git@github.com:openharmony/manifest.git -b master --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` -Method 1 \(recommended\): Use the**repo**tool to download the source code over SSH. \(You must have registered an SSH public key for access to Gitee.\) +Method 2: Use the **repo** tool to download the source code over HTTPS. - repo init -u git@github.com:openharmony/manifest.git -b master --no-repo-verify - repo sync -c - repo forall -c 'git lfs pull' - -Method 2: Use the **repo** tool to download the source code over HTTPS. - - repo init -u https://github.com/openharmony/manifest.git -b master --no-repo-verify - repo sync -c - repo forall -c 'git lfs pull' +``` +repo init -u https://github.com/openharmony/manifest.git -b master --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` ## Source Code Directories The following table describes the OpenHarmony source code directories. -**Table 2** Source code directories +**Table 2** Source code directories - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Name

-

Description

-

applications

-

Application samples, for example, camera

-

base

-

Basic software service subsystem set and hardware service subsystem set

-

build

-

Bundle-based compilation, build, and configuration scripts

- +

Bundle-based compilation, building, and configuration scripts

docs

-

Reference documents

-

domains

-

Enhanced software service subsystem set

-

drivers

-

Driver subsystem

-

foundation

-

Basic system capability subsystem set

-

kernel

-

Kernel subsystem

-

prebuilts

-

Compiler and tool chain subsystem

-

test

-

Testing subsystem

-

third_party

-

Open-source third-party software

-

utils

-

Commonly used development tools

-

vendor

-

Vendor-provided software

-

build.py

-

Compilation script file

-
+ diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index 3bf328d68d5..24f68946d82 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -7,7 +7,7 @@ - [前提条件](#section102871547153314) - [操作步骤](#section429012478331) -- [获取方式2:从HPM获取](#section463013147412) +- [获取方式2:从DevEco Marketplace获取](#section463013147412) - [适用场景](#section26661067443) - [前提条件](#section17544943123315) - [操作步骤](#section954619433333) @@ -27,7 +27,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 本文档将介绍如何获取OpenHarmony源码并说明OpenHarmony的源码目录结构。OpenHarmony的代码以[组件](../bundles/oem_bundle_standard_des.md)的形式开放,开发者可以通过如下其中一种方式获取: - **获取方式1**:从码云代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 -- **获取方式2**:通过HPM包管理器获取。在[HPM](https://hpm.harmonyos.com)网站,查找满足需求的开源发行版,直接下载(或者定制后下载),再通过hpm-cli命令工具将所需的组件及工具链下载、安装到本地。 +- **获取方式2**:通过[DevEco Marketplace](https://repo.harmonyos.com/#/cn/home)网站获取。访问[DevEco Marketplace](https://repo.harmonyos.com/#/cn/home)网站,查找满足需求的开源发行版,直接下载(或者定制后下载),再通过hpm-cli命令工具将所需的组件及工具链下载、安装到本地。 - **获取方式3**:从镜像站点下载归档后的发行版压缩文件。如果要获取旧版本的源码,也可通过此方式获取,此方式下载速度较快。 - **获取方式4**:从github代码仓库获取。通过repo或git工具从代码仓库中下载,此方式可获取最新代码。 @@ -50,7 +50,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 1. 注册码云gitee账号。 2. 注册码云SSH公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191)。 -3. 安装[git客户端](http://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading)并配置用户信息。 +3. 安装[git客户端](https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading)并配置用户信息。 ``` git config --global user.name "yourname" @@ -98,11 +98,11 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 OpenHarmony发布版本源码获取方式请参考版本[Release-Notes](../../release-notes/Readme.md)。 -## 获取方式2:从HPM获取 +## 获取方式2:从DevEco Marketplace获取 ### 适用场景 -对于刚接触OpenHarmony的新用户,希望能够参考一些示例解决方案从而进行快速开发。可以在[HPM](https://hpm.harmonyos.com)网站获取下载开源发行版,也可以在开源发行版的基础上定制(添加或删除组件)。然后通过包管理器命令行工具(hpm-cli)将需要的组件及相关的编译工具链全部下载、安装到本地。 +对于刚接触OpenHarmony的新用户,希望能够参考一些示例解决方案从而进行快速开发。可以在[DevEco Marketplace](https://repo.harmonyos.com/#/cn/home)网站获取下载开源发行版,也可以在开源发行版的基础上定制(添加或删除组件)。然后通过包管理器命令行工具(hpm-cli)将需要的组件及相关的编译工具链全部下载、安装到本地。 ### 前提条件 @@ -112,7 +112,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 官网下载并在本地安装Node.js. - 推荐安装 [Node.js](https://nodejs.org/) 12.x \(包含 npm 6.14.4\)或更高版本 \(推荐 12.13.0+\)。 + [Node.js](https://nodejs.org/) 版本需不低于12.x \(包含 npm 6.14.4\),推荐安装 LTS版本。 2. 通过Node.js自带的npm安装hpm命令行工具。 @@ -138,13 +138,13 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 ### 操作步骤 1. 查找发行版。 - 1. 打开包管理页面[HPM](https://hpm.harmonyOS.com),设定搜索的对象为“发行版“,如下图所示。 + 1. 访问[DevEco Marketplace](https://repo.harmonyos.com/#/cn/home),设定搜索的对象为“设备组件“,并在左侧边栏选择“开源发行版“,如下图所示。 2. 在搜索框输入关键字搜索,如“摄像头”。 3. 结果中显示与关键字匹配的发行版,可以进一步根据组件类别等过滤条件(如:适配的开发板,内核)精确筛选。 4. 查找合适的发行版,点击查看发行版的详情介绍。 - **图 1** 包管理 - ![](figure/包管理.png "包管理") + **图 1** 包管理 + ![](figures/包管理.png "包管理") 2. 了解发行版详情。 @@ -152,8 +152,8 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 2. 点击「直接下载」,将发行版下载到本地。 3. 点击「定制组件」,将对发行版包含的组件进行定制(添加/删除)。 - **图 2** 发行版示例 - ![](figure/发行版示例.png "发行版示例") + **图 2** 发行版示例 + ![](figures/发行版示例.png "发行版示例") 3. 定制组件。 1. 进入发行版的定制页面,如下图所示。 @@ -161,13 +161,13 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 3. 在右边填写您的项目基本信息,包括名称、版本、描述等信息。 4. 点击“下载“,系统会根据您的选择,生成相应的OpenHarmony代码结构文件\(如my\_cust\_dist.zip\),保存至本地文件。 - **图 3** 组件定制 - ![](figure/组件定制.png "组件定制") + **图 3** 组件定制 + ![](figures/组件定制.png "组件定制") -4. 下载安装组件。 - 1. 解压下载的压缩文件,用命令行工具CMD(Linux下的Shell终端) - 2. 在解压后的文件目录下执行hpm install指令 - 3. 下载的组件存在工程目录下的ohos\_bundles文件夹中(部分组件安装后会将源码复制到指定目录下)。 +4. 安装组件。 + 1. 解压下载的压缩文件,用命令行工具CMD(Linux下的Shell终端)。 + 2. 在解压后的文件目录下执行hpm install指令,系统会自动下载并安装组件。安装窗口显示“Install sucessful”表示组件下载及安装成功。 + 3. 下载的组件将保存在工程目录下的ohos\_bundles文件夹中(部分组件安装后会将源码复制到指定目录下)。 ## 获取方式3:从镜像站点获取 -- Gitee From ad96d1298f95896f92f6b8e110616b6b54d6a68e Mon Sep 17 00:00:00 2001 From: duangavin123 Date: Wed, 20 Oct 2021 09:44:25 +0000 Subject: [PATCH 2/2] update en/device-dev/get-code/sourcecode-acquire.md. Signed-off-by: duangavin123 --- en/device-dev/get-code/sourcecode-acquire.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/device-dev/get-code/sourcecode-acquire.md b/en/device-dev/get-code/sourcecode-acquire.md index 6303b3263c6..8ccf2c55e7f 100644 --- a/en/device-dev/get-code/sourcecode-acquire.md +++ b/en/device-dev/get-code/sourcecode-acquire.md @@ -144,7 +144,7 @@ You must install **Node.js** and HPM on your local PC. The installation proced 4. Find your desired distribution and click it to view details. **Figure 1** HPM page - ![](figures/hpm-page.png "hpm-page") + ![](figure/hpm-page.png "hpm-page") 2. Learn more about the distribution. @@ -153,7 +153,7 @@ You must install **Node.js** and HPM on your local PC. The installation proced 3. Click **Custom** to add or delete bundles of the distribution. **Figure 2** Example distribution - ![](figures/example-distribution.png "example-distribution") + ![](figure/example-distribution.png "example-distribution") 3. Customize bundles. 1. Access the **Custom solution** page, as shown in the following figure. @@ -162,7 +162,7 @@ You must install **Node.js** and HPM on your local PC. The installation proced 4. Click **Download**. The system then generates the OpenHarmony code structure file \(for example, **my\_cust\_dist.zip**\) and saves it to your local PC. **Figure 3** Customizing bundles - ![](figures/customizing-bundles.png "customizing-bundles") + ![](figure/customizing-bundles.png "customizing-bundles") 4. Install bundles. 1. Decompress the downloaded code structure file using CMD on Windows \(or shell in Linux\). -- Gitee