錯(cuò)誤如下:
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目錄下(
沒(méi)有的話,自己創(chuàng)建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 目錄下(
沒(méi)有的話与帆,自己創(chuàng)建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