参考网址
Vue+Electron打包桌面应用(从零到一完整教程)_vue打包electron-CSDN博客
【分享】Vite+Vue3+Electron打包桌面应用
【分享】Vite+Vue3+Electron打包桌面应用_哔哩哔哩_bilibili
⨯ Application entry file "electron\main.js" in the "D:\vs2024proj\electron_vite_ts_demo_sunny\electron-vite-demo-sunny\dist_electron\win-ia32-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration. failedTask=build stackTrace=Error: Application entry file "electron\main.js" in the "D:\vs2024proj\electron_vite_ts_demo_sunny\electron-vite-demo-sunny\dist_electron\win-ia32-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration.
报错解决方案:配置错误,需要包含所加载的js文件
更改配置 package.json文件中build下files配置,更改为如下:
"files": [
"controller",
"preload",
"dist/**/*",
"electron/**/*"
],
网友评论