Jambo Tz
JF-Expert Member
- Jul 19, 2013
- 670
- 203
Release Process
Preparing for the Signature File
Configuring the Signature Information
Building Your App
Releasing Your App to HUAWEI AppGallery
Releasing Your App
Release Process
To release your app to HUAWEI AppGallery, package your app into an APP Pack. The process is shown below.
Read on to find out more about the process.
Preparing for the Signature File
To release a HarmonyOS app to HUAWEI AppGallery, you need a release certificate and profile from AppGallery Connect and sign the app. For details about how to apply for a release certificate and profile, see the table below.
Step
Procedure
Description
Operation Guide
1
Generate a key and certificate signing request.
Use DevEco Studio to generate a key (stored in the .p12 file) and a certificate signing request file (.csr).
Generating a Key and Certificate Signing Request
2
Create an AppGallery Connect project.
Before applying for a release certificate, log in to AppGallery Connect and create a project.
NOTE
If you have created a project and an app when applying for a debug certificate, skip steps 2 and 3.
Creating a Project in AppGallery Connect
3
Create a HarmonyOS app.
In an AppGallery Connect project, create a HarmonyOS app so you can apply for a release certificate and profile.
Creating a HarmonyOS App
4
Apply for a release certificate and profile.
Apply for and download a release certificate and profile in AppGallery Connect.
Applying for an App Release Certificate and Profile
With the obtained release certificate and profile, sign your app as instructed in Configuring the Signature Information.
Configuring the Signature Information
Before building your app, use the key file (.p12), certificate file (.cer), and profile file (.p7b). The latter two files are obtained from AppGalllery Connect. Then configure the project in DevEco Studio.
Go to File > Project Structure > Project > Signing Configs, then configure the signature information of the project.
Store File: Select a key store file in .p12 format.
Store Password: Enter the key store password.
Key Alias: Enter the alias of the key.
Key Password: Enter the password of the key.
SignAlg: signature algorithm, which is automatically set to SHA256withECDSA and cannot be changed.
Profile File: Select the obtained release profile in .p7b format.
Certpath File: Select the obtained release certificate in .cer format.
After setting the signature information, click OK to save the settings. Then build your app as instructed in Building Your App.
Building Your App
Before packaging, make sure your project directory does not contain any unwanted HAPs. Once packaging starts, DevEco Studio will pack all HAPs in your project directory into an APP Pack.
Go to Build > Build APP(s)/Hap(s) > Build APP(s) and wait until the process to complete.
Go to build > outputs > app > release to obtain the digitally signed APP Pack.
Click to enlarge
Releasing Your App to HUAWEI AppGallery
You can use AppGallery Connect to distribute your HarmonyOS app to different devices. For details about how to release your app, refer to Releasing Your App.
Preparing for the Signature File
Configuring the Signature Information
Building Your App
Releasing Your App to HUAWEI AppGallery
Releasing Your App
Release Process
To release your app to HUAWEI AppGallery, package your app into an APP Pack. The process is shown below.
Read on to find out more about the process.
Preparing for the Signature File
To release a HarmonyOS app to HUAWEI AppGallery, you need a release certificate and profile from AppGallery Connect and sign the app. For details about how to apply for a release certificate and profile, see the table below.
Step
Procedure
Description
Operation Guide
1
Generate a key and certificate signing request.
Use DevEco Studio to generate a key (stored in the .p12 file) and a certificate signing request file (.csr).
Generating a Key and Certificate Signing Request
2
Create an AppGallery Connect project.
Before applying for a release certificate, log in to AppGallery Connect and create a project.
NOTE
If you have created a project and an app when applying for a debug certificate, skip steps 2 and 3.
Creating a Project in AppGallery Connect
3
Create a HarmonyOS app.
In an AppGallery Connect project, create a HarmonyOS app so you can apply for a release certificate and profile.
Creating a HarmonyOS App
4
Apply for a release certificate and profile.
Apply for and download a release certificate and profile in AppGallery Connect.
Applying for an App Release Certificate and Profile
With the obtained release certificate and profile, sign your app as instructed in Configuring the Signature Information.
Configuring the Signature Information
Before building your app, use the key file (.p12), certificate file (.cer), and profile file (.p7b). The latter two files are obtained from AppGalllery Connect. Then configure the project in DevEco Studio.
Go to File > Project Structure > Project > Signing Configs, then configure the signature information of the project.
Store File: Select a key store file in .p12 format.
Store Password: Enter the key store password.
Key Alias: Enter the alias of the key.
Key Password: Enter the password of the key.
SignAlg: signature algorithm, which is automatically set to SHA256withECDSA and cannot be changed.
Profile File: Select the obtained release profile in .p7b format.
Certpath File: Select the obtained release certificate in .cer format.
After setting the signature information, click OK to save the settings. Then build your app as instructed in Building Your App.
Building Your App
Before packaging, make sure your project directory does not contain any unwanted HAPs. Once packaging starts, DevEco Studio will pack all HAPs in your project directory into an APP Pack.
Go to Build > Build APP(s)/Hap(s) > Build APP(s) and wait until the process to complete.
Go to build > outputs > app > release to obtain the digitally signed APP Pack.
Click to enlarge
Releasing Your App to HUAWEI AppGallery
You can use AppGallery Connect to distribute your HarmonyOS app to different devices. For details about how to release your app, refer to Releasing Your App.