当前位置:网站首页>Uniapp cloud packaging app

Uniapp cloud packaging app

2022-06-25 14:27:00 Enlightened gentleman

uniapp Cloud packaging app, Make a note of

1、 register dcloud developer

First you need to register a dcloud Developer's account

dcloud Developer center :https://dev.dcloud.net.cn/

According to the latest regulations , After registration, you need to bind your mobile number , Otherwise, cloud packaging is not allowed

2、 Generate Certificate

Here, you can generate the certificate according to the generated certificate document on the official website , The official website documents are as follows

The official website generates certificate documents :https://ask.dcloud.net.cn/article/35777

The author generates according to the official website documents , Steps are as follows

First make sure the computer is installed java Environmental Science , Then find a directory as the directory of the certificate , Execute the following command

keytool -genkey -alias testalias -keyalg RSA -keysize 2048 -validity 36500 -keystore test.keystore

testalias Alias , You can open your name at will , But remember , Because I will use

Remember the password of the certificate file

 

3、 Cloud packaging

Here the author creates a new uniapp Project as an example

  Project name is test

After the project is created , see dcloud Developer center , See if there are any newly created test project

  Then open the newly created test Project  manifest.json file , see uni-app Application identification and apply name , See if they match  dcloud Developer center The applications in the application list are consistent

  If  dcloud Developer center If there is no newly created application in the application list , Manual creation required , And recapture uni-app Application identification

above  uni-app Application identification and apply name No problem , Cloud packaging

stay HBuilderX in , Selected items , choice issue , Click on Native App- Cloud packaging

Enter the alias and password when generating the certificate and the certificate location

 

  When you're done typing , Click pack

  Package successfully

  open apk File directory

That's it  

原网站

版权声明
本文为[Enlightened gentleman]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200521357429.html