Electron-builder failed to package, prompting Application ... app.asar does not exist

错误代码:
• electron-builder version=22.10.4
• writing effective config file=distbuilder-effective-config.yaml
• no native production dependencies
• packaging platform=win32 arch=x64 electron=12.2.3 appOutDir=distwin-unpacked
Error: Application entry file “dist\electron\main.js” in the “D:\electronWork\electron-egg\build\win-unpacked\resources\app.asar” does not exist

Abnormal performance:
electron-builder failed to package

Solution:
In the root directory of the electron project, if there is an app file directory, the directory must be an ordinary file directory.
For example, in the app/ directory, there cannot be .git, package.json, node_modules and other files.

If you are using the electron-egg framework icon-default.png?t=M4ADhttps://github.com/wallace5303/electron-egg
, then the default folder name of the front-end project is: frontend, please do not change the file name.

Guess you like

Origin blog.csdn.net/qq_32660241/article/details/124737726