记录下electron打包时必需的几个资源
打包时会从github的release下载几个软件包,但是被墙了,所以下不下来导致build失败。
在公众号内回复关键字electron-build获取所需资源:
- nsis
- winCodeSign
- nsis-resources
下载好压缩包之后放至cache缓存目录解压即可
macOS: ~/Library/Caches/electron-builder
Linux: ~/.cache/electron-builder
windows: %LOCALAPPDATA%\electron-builder\cache
目录结构
.
├── nsis
│ └── nsis-3.0.3.2
│ └── nsis-resources-3.4.1
├── winCodeSign
│ └── winCodeSign-2.5.0
└── wine
└── wine-4.0.1-mac