Updated on 2023-12-21 GMT+08:00

Build Android Quick App

Use the npm config set xxx command.

Configuration Description

Add Build Android Quick App, when configuring build actions.

The parameters are described in the following table.

Parameter

Description

Action Name

Name of a build action. It can be customized.

Tool Version

Select a build tool version.

Commands

Configure commands. The following is an example of using the debug signature for packing.

To sign a quick app, perform the following steps:

  1. Run the openssl command to generate the signature files private.pem and certificate.pem. Example:
    1
    openssl req -newkey rsa:2048 -nodes -keyout private.pem -x509 -days 3650 -out certificate.pem
    

    Create the release directory in the sign directory of the project and copy the private key file private.pem and certificate file certificate.pem to the directory.

  2. Before releasing the program package, add the release signature and run the following command in the root directory of the project:
    1
    npm run release 
    

    The generated application directory is /dist/.release.rpk.

  3. To temporarily use the debug signature, run the following command:
    1
    npm run release -- --debug 
    
    NOTE:

    The debug signature is open and not necessarily secure. Therefore, do not use the debug signature to sign an application to be officially released.