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