electron-builder生产安装包

打包时下载electron的编译包出现404问题,可以配置build以下选项,提高打包的成功率。

自定义的打包命令

"pack": "electron-builder --project ./dist --win --ia32"


华为

"electronDownload": {
  "mirror": "https://mirrors.huaweicloud.com/electron/"
},

淘宝

"electronDownload": {
  "mirror": "http://npm.taobao.org/mirrors/electron/"
},

多错几回就知道了
PYTHON_PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin/python yarn run build

12-28 11:59