问题1:
经常会遇到pnpm install electron 的版本下载下来没有dist文件夹
使用pnpm store prune 删除node_modules和pnpm-lock.yaml
同事确保pnpm的版本在8.15.0,
问题2:
electron-builder构建问题,因为我的electron的版本是30.0.1最近的electron-builder的版本是26 .会出现打包找不到electron--dist--electron.exe文件。只需要把electron-builder版本降级到24.13.3,
问题3:
打包会走github网址,
在build下面加上"electronVersion": "30.0.1",
"electronDist": "./node_modules/electron/dist",
在package.josn文件里面,但是要注意签名的东西
最主要的关闭防火墙和杀毒