Packaging of uniapp: h5, WeChat applet and APP method

Packaging of uniapp: h5, WeChat applet and APP method


I use the HBuilder compiler, which was highly recommended by someone at station b when I was learning uniapp. I also used it when I first came into contact with the code. It was not easy to use this compiler at that time, but it is very useful after trying it now.

H5 packaging

This is the packaging configuration of the h5 page. The new version of HBuilder uses web configuration (that is, the meaning of h5 configuration).
insert image description here
Since the above picture is my personal project practice, appID is not used, so the following picture is a screenshot of the video I followed. up.

Then we look at the navigation bar of HBuilder"issued"issued"——> PC Web or Mobile H5 (only for uni-app)".

After the pop-up box, you only need to write the website title, then click the release button, and then wait. The packaged files will be placed in the unpackage folder.
insert image description here

unpackage->dist->build->h5 (right click to open externally)

Pull the h5 folder into the project, put it in the server, give him a domain name, and you can watch it directly.
insert image description here

WeChat Mini Program Packaging


To configure the WeChat Mini Program, you only need to fill in the WeChat Mini Program AppID. AppID is different for everyone, so I coded it below

insert image description here

In "Publish", select the corresponding WeChat Mini Program option and package it. There is
insert image description here
insert image description here


another way to distribute WeChat Mini Programs, that is, you can check the third box, but you need to use the Mini Program Key. You can try it. I won't show it here.

If it is not checked, we will display it in the WeChat developer tools.
insert image description here


The domain name needs to be set to a safe domain name, otherwise an error will be reported when running in the WeChat developer tools.
insert image description here


You can set the legal domain name in the project configuration of the WeChat developer tool, or uncheck the check box in the local settings of Do not verify the legal domain name.
insert image description here
insert image description here


If you want to use someone else's interface, the legal domain name must be placed in the location indicated in the figure below.

insert image description here


Multiple domain names can also be set.
insert image description here

Click OK after uploading
insert image description here
insert image description here

App packaging

Click the basic configuration, and you can write the application name, application description, version name, and version number by yourself.
insert image description here
Select the App icon to
insert image description here
configure the distribution and select the native App-cloud packaging, which is relatively simple and convenient.
insert image description here
After packaging, this box will pop up, just look at it and set it up. If the project involves a store or something, it will be more troublesome, and you need to use the relevant certificate.
insert image description here
Finally, click "Package" in the lower corner, and the corresponding files will be automatically verified. We need to click "Continue Packaging".

After the packaging is completed, it will appear in the .apk suffix, and we open it externally.
insert image description here
You can use WeChat, QQ, or plug in the data cable (USB cable) to send it to your mobile phone, and install it directly.
insert image description here
Remarks: This study is on station b. The following is the learning website, you can click to watch it yourself: uniapp study

Guess you like

Origin blog.csdn.net/huang_99/article/details/129818146