electron-vue package

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

"directories": {
  "output": "build"
},
If no, then it generates directly to the dist directory.
If you want to learn more about the build package configuration, you can look at this, that quite detailed: https://www.h3399.cn/201810/624708.html
3, the implementation npm RUN build , after the successful implementation, resulting dist directory and build directory on so long

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! ! !

 

Guess you like

Origin www.cnblogs.com/lightmusic/p/11422303.html