错误如下:
errorOut=ERROR: Can not open output file : ▒ܾ▒▒▒▒ʡ▒ : C:\****\electron-builder\Cache\winCodeSign\384097343\windows-10\ia32\appxpackaging.dll
下载 electron-v9.4.4-win32-ia32.zip
https://npm.taobao.org/mirrors/electron/9.4.4/electron-v9.4.4-win32-ia32.zip
解压放到 C:\Users\Admin\AppData\Local\electron-builder\Cache 目录下
下载SHASUMS256.txt
https://npm.taobao.org/mirrors/electron/9.4.4/SHASUMS256.txt
重命名为SHASUMS256.txt 放到 C:\Users\Admin\AppData\Local\electron\Cache 目录下
下载 winCodeSign
https://npm.taobao.org/mirrors/electron-builder-binaries/winCodeSign-2.6.0/
解压放到C:\Users\Admin\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.6.0目录下(
没有的话,自己创建winCodeSign-2.6.0)
下载/nsis-3.0.4.1
⨯ Get "https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z": dial tcp 52.74.223.119:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
https://npm.taobao.org/mirrors/electron-builder-binaries/nsis-3.0.4.1/
解压放到C:\Users\Admin\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1 目录下(
没有的话,自己创建nsis-3.0.4.1)
最终路径为
--- electron
--Cache
-electron-v12.0.7-win32-x64.zip
-SHASUMS256.txt
---- electron-builder
---Cache
--nsis
-nsis-3.0.4.1
-nsis-resources-3.4.1
--winCodeSign
-winCodeSign-2.6.0