使用pnpm包管理工具,在window 10操作系统上进行打包操作,electron镜像地址配置如下:
ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
ELECTRON_BUILDER_BINARIES_MIRROR="https://registry.npmmirror.com/binary.html?path=electron-builder-binaries/"
执行pnpm build打包命令过程中惊喜不断!!!
问题1:winCodeSign下载失败
打开electron-builder本地缓存目录(~\AppData\Local\electron-builder\Cache),进入winCodeSign目录,发现下载的压缩包存在问题
解决办法:
1.清空winCodeSign目录;
2.根据