提交 d0d7d204 编写于 作者: O openharmony_ci 提交者: Gitee

!344 update docs

Merge pull request !344 from NEEN/master
......@@ -3,6 +3,7 @@
- [DevEco Studio \(OpenHarmony\) User Guide](deveco-studio-(openharmony)-user-guide.md)
- [Overview](overview.md)
- [Configuring the OpenHarmony SDK](configuring-the-openharmony-sdk.md)
- [Importing an OpenHarmony Project](importing-an-openharmony-project.md)
- [Configuring the OpenHarmony App Signature](configuring-the-openharmony-app-signature.md)
- [Installing and Running Your OpenHarmony App](installing-and-running-your-openharmony-app.md)
......
......@@ -71,24 +71,21 @@ Refer to the following descriptions about the parameters in the command:
Before debugging on a real device, use the private key file \(.p12\), certificate file \(.cer\), and profile file \(.p7b\) to sign the target module.
Go to **File** \> **Project Structure**. On the displayed page, go to **Modules** \> _Module name_ \> **Signing Configs**, and set the signing parameters under **debug**.
>![](public_sys-resources/icon-note.gif) **NOTE:**
>To release a HAP package of the release type, configure the signature information from **Modules** \> _Module name_ \> **Signing Configs** \> **release**.
Go to **File** \> **Project Structure** \> **Project** \> **Signing Configs** \> **debug**, deselect **Automatically generate signing**, and configure the signature information of the specified module.
- **Store File**: Select the key store file with the file name extension .p12, which is generated in [Generating a Key Store and CSR](#section153146467405).
- **Store Password**: Enter the key store password.
- **Key Alias**: Enter the alias of the key.
- **Key Password**: Enter the password of the key.
- **Store Password**: Enter the key store password, which is the same as the key store password entered in [Generating a Key Store and CSR](#section153146467405).
- **Key Alias**: Enter the alias of the key, which is the same as the alias entered in [Generating a Key Store and CSR](#section153146467405).
- **Key Password**: Enter the key password, which is the same as the value of **Store Password**.
- **Sign Alg**: Specify the signature algorithm, which has a fixed value of **SHA256withECDSA**.
- **Profile File**: Select the obtained debug profile in .p7b format.
- **Certpath File**: Select the obtained debug certificate in .cer format.
![](figures/en-us_image_0000001160327971.png)
![](figures/en-us_image_0000001117638220.png)
Click **OK** to save your configurations. Then you can view the signature configuration information in **build.gradle** of the module.
Click **OK** to save your configurations. Then you can view the signature configuration information in **build.gradle** of the project.
![](figures/en-us_image_0000001113648168.png)
![](figures/en-us_image_0000001117638526.png)
By default, the type of a HAP package compiled using DevEco Studio is set to **debug**. For a release type, click the **OhosBuild Variants** tab in the lower left corner of the project and set the type to **release**. For details about how to compile and build the HAP, see [HUAWEI DevEco Studio User Guide](https://developer.harmonyos.com/en/docs/documentation/doc-guides/build_hap-0000001053342418).
......@@ -96,5 +93,5 @@ By default, the type of a HAP package compiled using DevEco Studio is set to **
After the compilation is complete, you can obtain the HAP package of your OpenHarmony app from the **build** directory of the project.
![](figures/en-us_image_0000001163552429.png)
![](figures/en-us_image_0000001163918627.png)
......@@ -2,7 +2,6 @@
- [Prerequisites](#section164161442154812)
- [Configuring the SDK Information](#section1265592425017)
- [Importing the Project](#section12559415183418)
To set up the OpenHarmony app development environment, configure the corresponding SDK information in DevEco Studio first.
......@@ -58,7 +57,7 @@ DevEco Studio manages SDKs and toolchains using SDK Manager. OpenHarmony contain
2. Follow the instructions in DevEco Studio to go to the SDK download page. In the **HarmonyOS SDK Location** field, select the local directory where the SDK package was decompressed, then click **Next**.
>![](public_sys-resources/icon-note.gif) **NOTE:**
>If you are not using DevEco Studio for the first time, the SDK download page may not be displayed. In this case, go to **Configure \> Settings \> Appearance & Behavior \> System Settings \> HarmonyOS SDK** and click **HarmonyOS SDK Location** to download the SDK.
>If you are not using DevEco Studio for the first time, the SDK download page may not be displayed. In this case, go to **Configure** \(or ![](figures/en-us_image_0000001117475774.png)\) \> **Settings** \> **Appearance & Behavior** \> **System Settings** \> **HarmonyOS SDK** and click **HarmonyOS SDK Location** to download the SDK.
![](figures/en-us_image_0000001117288684.png)
......@@ -76,32 +75,3 @@ DevEco Studio manages SDKs and toolchains using SDK Manager. OpenHarmony contain
![](figures/en-us_image_0000001163170097.png)
## Importing the Project<a name="section12559415183418"></a>
After the OpenHarmony SDK is configured, you can start developing your app only by **importing a sample project** to begin with.
1. On the DevEco Studio welcome page, click **Import HarmonyOS Sample** to import a sample project.
![](figures/en-us_image_0000001163495457.png)
2. Go to **ability** \> **HelloWorld** and click **Next**.
![](figures/en-us_image_0000001117295732.png)
3. Configure **App Name** and **Project Location** and click **Finish**. Wait until the sample project is imported.
![](figures/en-us_image_0000001163500855.png)
4. Wait until the project sync is indicated to be failed. Open the **build.gradle** file in the project and change the version number of the HAP plugin to **2.4.4.3-RC**.
![](figures/en-us_image_0000001163550987.png)
5. Click ![](figures/en-us_image_0000001117304698.png) under **Gradle** in the upper right corner to sync the project again.
![](figures/en-us_image_0000001117145200.png)
6. When the project is successfully synced, you can develop your OpenHarmony app.
![](figures/en-us_image_0000001117145614.png)
......@@ -4,6 +4,8 @@
- **[Configuring the OpenHarmony SDK](configuring-the-openharmony-sdk.md)**
- **[Importing an OpenHarmony Project](importing-an-openharmony-project.md)**
- **[Configuring the OpenHarmony App Signature](configuring-the-openharmony-app-signature.md)**
- **[Installing and Running Your OpenHarmony App](installing-and-running-your-openharmony-app.md)**
......
# Importing an OpenHarmony Project<a name="EN-US_TOPIC_0000001163914943"></a>
After the OpenHarmony SDK is configured, you can start developing your app only by **importing a sample project** to begin with.
1. On the DevEco Studio welcome page, click **Import HarmonyOS Sample** to import a sample project.
![](figures/en-us_image_0000001163835551.png)
2. Go to **ability** \> **HelloWorld** and click **Next**.
![](figures/en-us_image_0000001117635678.png)
3. Configure **App Name** and **Project Location** and click **Finish**. Wait until the sample project is imported.
![](figures/en-us_image_0000001163915521.png)
4. Wait until the project sync is indicated to be failed. Open the **build.gradle** file in the project and change the version number of the HAP plugin to **2.4.4.3-RC**.
![](figures/en-us_image_0000001117475776.png)
5. Click ![](figures/en-us_image_0000001163835553.png) under **Gradle** in the upper right corner to sync the project again.
![](figures/en-us_image_0000001117635680.png)
6. When the project is successfully synced, you can develop your OpenHarmony app.
![](figures/en-us_image_0000001163915523.png)
......@@ -11,6 +11,7 @@ DevEco Studio is an integrated development environment \(IDE\) of HarmonyOS apps
The process of developing an OpenHarmony app using DevEco Studio is the same as that of developing a HarmonyOS app. This document describes the differences between OpenHarmony and HarmonyOS app development.
- **Environment setup**: You need to manually configure the SDK for the OpenHarmony app development. For details, see [Configuring the OpenHarmony SDK](configuring-the-openharmony-sdk.md).
- **OpenHarmony project import**: To develop an OpenHarmony app, you can only import a sample project to start with. For details, see [Importing an OpenHarmony Project](importing-an-openharmony-project.md).
- **Signature configuration for debugging**: To run an OpenHarmony app on a real device, you need to sign the app first. For instructions, see [Configuring the OpenHarmony App Signature](configuring-the-openharmony-app-signature.md).
- **App running on a real device**: To run your app on a real device, you need to use the hdc tool to push the HAP package of the OpenHarmony to the real device for installation. For details, see [Installing and Running Your OpenHarmony App](installing-and-running-your-openharmony-app.md).
......
......@@ -377,7 +377,8 @@
- [DevEco Studio(OpenHarmony)使用指南](zh-cn/application-dev/quick-start/DevEco-Studio(OpenHarmony)使用指南.md)
- [概述](zh-cn/application-dev/quick-start/概述.md)
- [配置OpenHarmony SDK](zh-cn/application-dev/quick-start/配置OpenHarmony-SDK.md)
- [配置OpenHarmony应用签名信息](zh-cn/application-dev/quick-start/配置OpenHarmony应用签名信息.md)
- [导入OpenHarmony工程](zh-cn/application-dev/quick-start/导入OpenHarmony工程.md)
- [配置OpenHarmony应用签名信息](zh-cn/application-dev/quick-start/配置OpenHarmony应用签名信息.md)
- [安装运行OpenHarmony应用](zh-cn/application-dev/quick-start/安装运行OpenHarmony应用.md)
- [快速入门](zh-cn/application-dev/quick-start/快速入门.md)
- [开发准备](zh-cn/application-dev/quick-start/开发准备.md)
......
......@@ -4,6 +4,8 @@
- **[配置OpenHarmony SDK](配置OpenHarmony-SDK.md)**
- **[导入OpenHarmony工程](导入OpenHarmony工程.md)**
- **[配置OpenHarmony应用签名信息](配置OpenHarmony应用签名信息.md)**
- **[安装运行OpenHarmony应用](安装运行OpenHarmony应用.md)**
......
......@@ -3,9 +3,11 @@
- [DevEco Studio(OpenHarmony)使用指南](DevEco-Studio(OpenHarmony)使用指南.md)
- [概述](概述.md)
- [配置OpenHarmony SDK](配置OpenHarmony-SDK.md)
- [导入OpenHarmony工程](导入OpenHarmony工程.md)
- [配置OpenHarmony应用签名信息](配置OpenHarmony应用签名信息.md)
- [安装运行OpenHarmony应用](安装运行OpenHarmony应用.md)
- [包结构说明](包结构说明.md)
- [快速入门](快速入门.md)
- [开发准备](开发准备.md)
- [使用JS语言开发](使用JS语言开发.md)
......
# 包结构说明<a name="ZH-CN_TOPIC_0000001117322842"></a>
在应用开发的工程中,需要在config.json配置文件中对应用的包结构进行声明。
配置文件示例如下:
```
{
"app": {
"bundleName": "com.example.myapplication",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.myapplication.entrymodule",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.myapplication.entrymodule.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
```
**包结构声明需要注意以下约束:**
- "package"字段命名要保证在相同bundleName的应用内唯一。
- "abilities"字段下只能声明一个ability。
- "abilities"字段中ability的"name"字段命名要保证在相同bundleName的应用内唯一。
# 导入OpenHarmony工程<a name="ZH-CN_TOPIC_0000001163914943"></a>
OpenHarmony SDK配置完成后,便可以启动应用开发。针对OpenHarmony应用开发,**只能通过导入Sample工程的方式来创建一个新工程**
1. 在DevEco Studio的欢迎页,点击**Import HarmonyOS Sample**按钮,导入Sample工程。
![](figures/zh-cn_image_0000001163835551.png)
2. 选择ability下的**HelloWorld**工程,然后点击**Next**
![](figures/zh-cn_image_0000001117635678.png)
3. 设置**App Name****Project Location**,然后点击**Finish**,等待Sample工程导入完成。
![](figures/zh-cn_image_0000001163915521.png)
4. Sample导入后,等待工程同步完成,此时工程会同步失败。请打开工程下的build.gradle,修改hap插件的版本号为“2.4.4.3-RC”。
![](figures/zh-cn_image_0000001117475776.png)
5. 修改完成后,点击右上角Gradle中的![](figures/zh-cn_image_0000001163835553.png)按钮,重新同步工程。
![](figures/zh-cn_image_0000001117635680.png)
6. 等待工程同步完成,同步成功后,便可以进行OpenHarmony应用开发了。
![](figures/zh-cn_image_0000001163915523.png)
......@@ -8,9 +8,10 @@
DevEco Studio是HarmonyOS的配套的开发IDE,因为HarmonyOS是基于OpenHarmony开发的,因此,使用DevEco Studio(配套HarmonyOS)也可以进行OpenHarmony的应用开发。
使用DevEco Studio开发OpenHarmony应用的流程与开发HarmonyOS的流程完全一样,本文档仅描述OpenHarmony应用开发与HarmonyOS应用开发的差异点。
使用DevEco Studio开发开发OpenHarmony应用的流程与开发HarmonyOS的流程完全一样,本文档仅描述OpenHarmony应用开发与HarmonyOS应用开发的差异点。
- **搭建开发环境差异**:OpenHarmony应用开发环境需要开发者手动配置SDK,具体可参考[配置OpenHarmony SDK](配置OpenHarmony-SDK.md)章节。
- **导入OpenHarmony工程**:OpenHarmony应用开发,只能通过导入Sample工程的方式来创建一个新工程,具体可参考[导入OpenHarmony工程](导入OpenHarmony工程.md)
- **调试签名配置**:OpenHarmony应用运行在真机设备上,需要对应用进行签名,关于OpenHarmony应用的签名指导请参考[配置OpenHarmony应用签名信息](配置OpenHarmony应用签名信息.md)
- **在真机设备上运行应用**:需要使用hdc工具将OpenHarmony的hap包推送到真机设备上进行安装,具体可参考[安装运行OpenHarmony应用](安装运行OpenHarmony应用.md)
......
......@@ -2,7 +2,6 @@
- [前提条件](#section164161442154812)
- [配置SDK信息](#section1265592425017)
- [导入工程](#section12559415183418)
在设置OpenHarmony应用开发环境时,需要开发者在DevEco Studio中配置对应的SDK信息。
......@@ -58,7 +57,7 @@ DevEco Studio通过SDK Manager统一管理SDK及工具链,OpenHarmony包含如
2. 接下来DevEco Studio会根据向导指示,进入到SDK下载界面,**HarmonyOS SDK Location**选择本地解压的SDK包路径,然后点击**Next**
>![](public_sys-resources/icon-note.gif) **说明:**
>如果不是首次安装DevEco Studio,可能无法查看进入该界面,可通过欢迎页的**Configure \> Settings \> Appearance & Behavior \> System Settings \> HarmonyOS SDK**界面,点击**HarmonyOS SDK Location**加载SDK。
>如果不是首次安装DevEco Studio,可能无法查看进入该界面,可通过欢迎页的**Configure (或**![](figures/zh-cn_image_0000001117475774.png)**图标)\> Settings \> Appearance & Behavior \> System Settings \> HarmonyOS SDK**界面,点击**HarmonyOS SDK Location**加载SDK。
![](figures/zh-cn_image_0000001117288684.png)
......@@ -76,32 +75,3 @@ DevEco Studio通过SDK Manager统一管理SDK及工具链,OpenHarmony包含如
![](figures/zh-cn_image_0000001163170097.png)
## 导入工程<a name="section12559415183418"></a>
OpenHarmony SDK配置完成后,便可以启动应用开发。针对OpenHarmony应用开发,**只能通过导入Sample工程的方式来创建一个新工程**
1. 在DevEco Studio的欢迎页,点击**Import HarmonyOS Sample**按钮,导入Sample工程。
![](figures/zh-cn_image_0000001163495457.png)
2. 选择ability下的**HelloWorld**工程,然后点击**Next**
![](figures/zh-cn_image_0000001117295732.png)
3. 设置**App Name****Project Location**,然后点击**Finish**,等待Sample工程导入完成。
![](figures/zh-cn_image_0000001163500855.png)
4. Sample导入后,等待工程同步完成,此时工程会同步失败。请打开工程下的build.gradle,修改hap插件的版本号为“2.4.4.3-RC”。
![](figures/zh-cn_image_0000001163550987.png)
5. 修改完成后,点击右上角Gradle中的![](figures/zh-cn_image_0000001117304698.png)按钮,重新同步工程。
![](figures/zh-cn_image_0000001117145200.png)
6. 等待工程同步完成,同步成功后,便可以进行OpenHarmony应用开发了。
![](figures/zh-cn_image_0000001117145614.png)
......@@ -71,24 +71,21 @@ java -jar provisionsigtool.jar sign --in UnsgnedReleasedProfileTemplate.json --o
在真机设备上调试前,需要使用到制作的私钥(.p12)文件、证书(.cer)文件和Profile(.p7b)文件对调试的模块进行签名。
打开**File \> Project Structure**,在**Modules\>entry(模块名称)\>Signing Configs \> debug**窗口中,配置指定模块的调试签名信息。
>![](public_sys-resources/icon-note.gif) **说明:**
>如果需要发布release类型的hap包,请将签名信息配置在**Modules\>entry(模块名称)\>Signing Configs \> release**中。
打开**File \> Project Structure**,点击**Project \> Signing Configs \> debug**窗口中,去除勾选“Automatically generate signing”,然后配置指定模块的调试签名信息。
- **Store File**:选择密钥库文件,文件后缀为.p12,该文件为[生成密钥和证书请求文件](#section153146467405)中生成的.p12文件。
- **Store Password**:输入密钥库密码。
- **Key Alias**:输入密钥的别名信息。
- **Key Password**:输入密钥的密码。
- **SignAlg**:签名算法,固定为SHA256withECDSA。
- **Store Password**:输入密钥库密码,该密码为[生成密钥和证书请求文件](#section153146467405)中填写的密钥库密码保持一致
- **Key Alias**:输入密钥的别名信息,与[生成密钥和证书请求文件](#section153146467405)中填写的别名保持一致
- **Key Password**:输入密钥的密码,与**Store Password**保持一致
- **Sign Alg**:签名算法,固定为SHA256withECDSA。
- **Profile File**:选择申请的调试Profile文件,文件后缀为.p7b。
- **Certpath File**:选择申请的调试数字证书文件,文件后缀为.cer。
![](figures/zh-cn_image_0000001160327971.png)
![](figures/zh-cn_image_0000001117638220.png)
设置完签名信息后,点击**OK**进行保存,然后可以在模块下的build.gradle中查看签名的配置信息。
设置完签名信息后,点击**OK**进行保存,然后可以在工程下的build.gradle中查看签名的配置信息。
![](figures/zh-cn_image_0000001113648168.png)
![](figures/zh-cn_image_0000001117638526.png)
默认情况下,DevEco Studio编译hap包的类型为debug类型,如果需要编译release类型的hap包,请打开工程左下角的OhosBuild Variants,设置模块的编译构建类型为release。关于编译构建hap的详细说明请参考[HUAWEI DevEco Studio使用指南](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/build_hap-0000001053342418)
......@@ -96,5 +93,5 @@ java -jar provisionsigtool.jar sign --in UnsgnedReleasedProfileTemplate.json --o
编译完成后,OpenHarmony应用的Hap包可以从工程的bulid目录下获取。
![](figures/zh-cn_image_0000001163552429.png)
![](figures/zh-cn_image_0000001163918627.png)
......@@ -5,7 +5,7 @@
## 简介<a name="section26131214194212"></a>
Hi3516DV300作为新一代行业专用Smart HD IP摄像机SOC,集成新一代ISP、H.265视频压缩编码器,同时集成高性能NNIE引擎,使得Hi3516DV300在低码率、高画质、智能处理和分析、低功耗等方面引领行业水平。
Hi3516DV300作为新一代行业专用Smart HD IP摄像机SOC,集成新一代ISP\(Image Signal Processor\)、H.265视频压缩编码器,同时集成高性能NNIE引擎,使得Hi3516DV300在低码率、高画质、智能处理和分析、低功耗等方面引领行业水平。
**图 1** Hi3516单板正面外观图<a name="fig11402183715219"></a>
......
......@@ -5,8 +5,8 @@
- [Docker环境安装使用](#section22916211916)
- [安装包方式准备Ubuntu编译环境](#section25961010189)
- [获取标准系统源码](#section15424183111912)
- [安装依赖工具](#section109262032104819)
- [获取标准系统源码](#section6325556113718)
- [获取prebuilts](#section16453104219209)
- [配置NodeJS环境和获取Node\_modules依赖包](#section133741330192119)
- [安装hc-gen工具](#section149281248182116)
......@@ -23,7 +23,7 @@ OpenHarmony标准系统为开发者提供的Docker环境已经将对应的编译
### 获取系统源码<a name="section58448331029"></a>
具体获取方式请参考[获取标准系统设备源码](../get-code/源码获取.md)
具体获取方式请参考[获取标准系统源码](../get-code/源码获取.md)
### Docker环境安装使用<a name="section22916211916"></a>
......@@ -33,24 +33,27 @@ OpenHarmony标准系统为开发者提供的Docker环境已经将对应的编译
安装包方式具体操作分为如下几步:
1. 获取系统源码
2. 安装依赖工具
1. 安装依赖工具
2. 获取系统源码
3. 获取prebuilts。
4. 配置NodeJS环境和获取Node\_modules依赖包。
5. 安装hc-gen工具。
### 获取标准系统源码<a name="section15424183111912"></a>
具体获取方式请参考[获取标准系统设备源码](../get-code/源码获取.md)
### 安装依赖工具<a name="section109262032104819"></a>
安装命令:
安装命令如下
```
sudo apt-get install binutils git-core git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4
```
>![](public_sys-resources/icon-note.gif) **说明:**
>以上安装命令适用于Ubuntu18.04,其他版本请根据安装包名称采用对应的安装命令。
### 获取标准系统源码<a name="section6325556113718"></a>
具体获取方式请参考[获取标准系统源码](../get-code/源码获取.md)
### 获取prebuilts<a name="section16453104219209"></a>
1. 切换到OpenHarmony工作目录。
......@@ -82,7 +85,7 @@ sudo apt-get install binutils git-core git-lfs gnupg flex bison gperf build-esse
### 配置NodeJS环境和获取Node\_modules依赖包<a name="section133741330192119"></a>
为了编译JS Framework,开发者需要在Linux服务器下载配置NodeJS,具体操作如下:
为了编译JS Framework,开发者需要在Linux服务器下载配置NodeJS(注意:步骤中OpenHarmony目录指代当前工程的根目录,可自定义),具体操作如下:
1. 开发者在Linux服务器下载Nodejs。
......@@ -90,25 +93,20 @@ sudo apt-get install binutils git-core git-lfs gnupg flex bison gperf build-esse
mkdir -p OpenHarmony/prebuilts/build-tools/common/nodejs #创建nodejs目录
cd OpenHarmony/prebuilts/build-tools/common/nodejs #进入nodejs目录
wget --no-check-certificate https://nodejs.org/download/release/v12.18.4/node-v12.18.4-linux-x64.tar.gz #下载nodejs
tar -zxvf node-v12.18.4-linux-x64.tar.gz #解压nodejs压缩包
cd - #切换到之前的目录
```
2. 解压NodeJS配置NodeJS环境。
```
tar -zxvf node-v12.18.4-linux-x64.tar.gz #解压nodejs压缩包
echo "export PATH=`pwd`/node-v12.18.4-linux-x64/bin:${PATH}" >> ~/.bashrc;source ~/.bashrc #设置NodeJS环境变量
cd - #切换到之前的目录
```
3. 进入OpenHarmony代码的third\_party/jsframework目录,下载node\_modules包。
2. 配置NodeJS环境变量,下载node\_modules包。
```
cd OpenHarmony/third_party/jsframework #进入jsframework目录
export PATH=../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin:${PATH} #设置NodeJS环境变量
npm install #下载node_modules包
cd - #切换到之前的目录
```
4. 把下载的node\_modules包放入OpenHarmony代码的prebuilts/build-tools/common/js-framework目录下。
3. 把下载的node\_modules包放入OpenHarmony代码的prebuilts/build-tools/common/js-framework目录下。
```
mkdir -p OpenHarmony/prebuilts/build-tools/common/js-framework #创建js-framework目录
......
......@@ -17,7 +17,7 @@
## 编译<a name="section375234715135"></a>
在Linux环境进行如下操作。
使用Docker环境的开发者可参照Docker使用指导进行编译。采用安装包方式的开发者在Linux环境进行如下操作。
1. 进入源码根目录,执行如下命令进行版本编译。
......@@ -213,7 +213,7 @@ Hi3516DV300开发板使用USB烧录方式,支持Windows系统。如果采用
- upload\_protocol:选择烧录协议,固定选择“hiburn-usb”。
- upload\_partitions:选择待烧录的文件,包括fastboot、boot、updater、misc、system、vendor和userdata。
![](figures/zh-cn_image_0000001163569081.png)
![](figures/zh-cn_image_0000001160528243.png)
6. 所有的配置都修改完成后,在工程配置页签的顶部,点击**Save**进行保存。
7. 打开工程文件,点击![](figures/2021-01-27_170334-17.png)图标,打开DevEco Device Tool界面,在“PROJECT TASKS”中,点击fastboot下的**Erase**按钮,擦除U-Boot。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册