electron-builder offline packaging, and the white screen problem after packaging

electron-builder offline packaging

In the past few days, I helped a friend to make a desktop program on windows, and found that Vue can be used for development, and finally electron is used to package the desktop program. However, when packaging, I encountered a big pit. Due to network reasons, I couldn’t package it all the time. When I was about to crash, I found a blog about offline packaging using electron-builder, which finally solved my problem.
Below I put the address of this blog:

https://blog.csdn.net/u010982507/article/details/101236913

Solve the problem of white screen after packaging

use

npm run pack:main

and

npm run pack:renderer

Make a packaged dist.
Finally, use the electron-builder command to package the exe.

Guess you like

Origin blog.csdn.net/wFitting/article/details/107418029