We use electron to package and generate cross-platform software. There are two officially recommended packaging methods.
The first is: electron-packager
The second is: electron-builder
What's the difference between the two?
1. The electron-packager package will generate
Such a folder, the software with exe in it is opened directly with
(This is not an installation package but a folder)
2. The electron-builder package will generate
Such multiple types of installers
*Note that this article is about the first solution in which electron-packager packaging cannot generate installation packages
Here we will mention nsis this thing!
NSIS Chinese version download address: https://pan.baidu.com/s/1mitSQU0
You can also download from Baidu
Turn off the antivirus software until the next step is completed
Then the fool-proof installation is as follows;
1
2
3
4
You can update the information of your own software, and then the next step
5
6
7
Note delete the authorization file delete delete delete
8
delete delete delete
9 The most critical step
Select the exe and all folders in the folder generated by electron-packager after packaging. Be sure to click, click, click
10
keep going
11.
Check all
12.
Choose where the installation package is born!
Then you have the installer!
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。