Create a Mini Program package in the mPaaS console to enable downstream operations such as release. Each package requires basic information and configuration settings.
Prerequisites
Complete the Mini Program package configuration in the configuration management interface before you begin. For details, see Configure a Mini Program package.
Procedure
Enter the mPaaS console and complete the following steps:
Click Mini Program > Release Mini Program in the left navigation bar.
-
In the Manage test package tab, click New on the right of the Mini Program package list.
NoteManage test package is for internal self-testing and verification before official release.
Manage official package is for releasing the official package after self-testing is complete.
-
In the New Mini Program window, enter the Mini Program ID and name, then click OK. The Mini Program ID must be a 16-digit number.
NoteThe Mini Program ID is a 16-digit number. Avoid numbers starting with 666 or 20000.
After the Mini Program is created, it appears in both the Manage official package and Manage test package tabs. You can add an official package or a test package under either tab — the steps are identical.
Under the Mini Program list, find the new Mini Program and click Add.
-
In the Basic information area, complete the following fields:
Version number: Enter the version number of the Mini Program package, for example,
1.0.0.1.-
Client range: Select the minimum and maximum client versions for iOS and/or Android that support this Mini Program.
NoteAt least one client type must be selected.
-
Icon: Click Choose file to upload the Mini Program package icon. Accepted formats: PNG, JPEG, JPG. Recommended size: 180×180 px, with the core graphic within 160 px.
NoteThe icon is required for the first package. For subsequent versions, if no icon is uploaded, the previous version's icon is used by default.
-
Package type: Select the type of Mini Program package to upload.
-
In Manage test package, choose Real device test package or Real device preview package.
NoteBoth package types are test versions uploaded through the IDE and can only be accessed by scanning the QR code generated by the IDE.
The real device test package supports remote debugging via the IDE. The real device preview package does not.
-
In Manage official package, choose Feature package or Plugin package.
NoteCurrently, there is no functional difference between the Feature package and the Plugin package.
-
File: Upload the Mini Program resource file. The file must be in .zip format.
-
In the Configuration information area, complete the following fields:
-
Main entry URL: Required. The homepage address of the Mini Program package, for example,
/index.html#pages/index/index.NoteFind the homepage address in the first item of the
pagearray in the Mini Program global configuration fileapp.json. See Application. Show bottom navigation bar: Choose whether to display the navigation bar at the bottom of the Mini Program.
Show upper-right function options: Choose whether to display additional function options in the upper-right corner of the Mini Program.
Virtual domain name: Displays the virtual domain name set when the Mini Program package was configured. This field is read-only.
-
Extended information: Optional. Enter page loading parameters in KV format. Separate multiple KV pairs with a comma (,).
NotemPaaS supports configuring the request interval for Mini Program packages. You can configure it per package or globally.
Individual configuration: Applies to the current Mini Program package only. Add
{"asyncReqRate":"1800"}to the Extended information field to set the request interval. The value1800is the interval in seconds. The valid range is 0–86400 seconds (0–24 hours). Setting it to0removes the interval limit.Global configuration: Configure globally in the client code. See Access Android and Access iOS.
-
Download time: Select when the Mini Program package is downloaded to the user's device.
Wi-Fi only: The package is downloaded automatically in the background only when the device is connected to a Wi-Fi network.
Download from all networks: The package is downloaded automatically over any network, including mobile data. Use with caution, as this consumes user data.
-
Installation time: Select when the Mini Program package is installed on the user's device.
No preload: The package is installed only when the user opens the Mini Program or navigates to a Mini Program page.
Preload: The package is installed automatically after it is downloaded.
-
Select The above information has been confirmed to be accurate and will not be modified after submission.
Click Submit.