vue electron and consolidation projects are packaged:
First of all, way more than this kind of packaging, I said what I packed the kind of success, hee hee ~ ~
1, the global installation package electron-builder tool: NPM the install -g electron-builder
2, the configuration file in package.json under the project root directory packaged information:
FIG encircled portion is packed in the windows configuration, IA32 exe file is generated representative of 32-bit, 64-bit computer can run as 32 and 64 exe file, it can be directly on the packaging 32,
If both 32-bit and 64-bit packed exe file, the volume will increase, there is no need
Here the output file after I packed was put under the build directory, because the configuration of the
4, double-click the exe file and the like, you can pop-up form, you can directly copy the exe file to run on someone else's computer, especially powerful! ! !