After debugging is complete, you can package the UniApp project as a UniApp miniapp and synchronize it to the SuperApp Business Application Platform. Alternatively, you can directly upload a locally built UniApp miniapp package (WGT), or package the project as a native app with the miniapp container integrated. This guide explains how to build, package, and publish a UniApp miniapp using the HBuilderX extension.
Procedure
After installing the HBuilderX plugin, create a UniApp project in HBuilderX. You can click the menu bar File > New > Project, select the desired project template, enter a project name, and click Create.


After the project is created, open the
manifest.jsonfile and enter the version number for this release in the App Version Name field.From the menu bar, select Build > Mini Program-Alibaba Cloud Superapp(For uni-app Only). A release configuration window will then appear.
In the pop-up dialog, enter the basic information.


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 UniApp miniapp is built.
|
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 UniApp miniapp into a native app and integrate a miniapp container into the native app, see FAQ.