After you debug your uni-app project, you can package the uni-app project into a uni-app miniapp and synchronize the miniapp artifact to Application Open Platform. Alternatively, you can directly synchronize the locally built uni-app miniapp to Application Open Platform, or package the uni-app project into a native app and integrate a miniapp container into the native app. This topic describes how to perform these operations.
Procedure
Create a uni-app miniapp. You can choose the official demo project of uni-app.
In the menu bar, choose Build > Mini Program-Alibaba Cloud EMAS(For uni-app Only). The EMAS Miniapp Publish dialog box appears.
The following table describes the parameters.
Parameter
Description
AppId
This parameter is required. You can obtain the app ID from Application Open Platform. For more information about how to obtain the ID, see View the app ID in Create an app.
PrivateKey File Path
This parameter is required. Upload the key file that is downloaded from Application Open Platform. For more information about how to download the key file, see Download an HBuilder key file in Global settings.
WGT File Path
This optional parameter specifies the path to the WGT file that is generated after the uni-app miniapp is built.
If the uni-app miniapp to be published is built, select the WGT build package.
If the uni-app miniapp to be published is not built and the WGT file path is empty, the extension calls the HBuilderX CLI tool to build the miniapp and package the miniapp into a WGT file.
Click Submit. The extension starts to publish the miniapp. After the miniapp is published, the miniapp artifact is synchronized to Application Open Platform.
For more information about how to package a uni-app miniapp into a native app and integrate a miniapp container into the native app, see FAQ.