Electron-builder: manually adding wincodesign in cache location is not working

Created on 9 Jan 2018  路  2Comments  路  Source: electron-userland/electron-builder


19.28.4

  • Version:

2.9.4

  • Target: windows

I am following this https://github.com/electron-userland/electron-builder/issues/1859 since I also face the same issue"host cant access internet"

This folder has winsign folderresources/electronbuilder/
This is how my release script looks like
"release": "mkdir -p ~/.cache/electron-builder && chmod -R 777 ~/.cache/electron-builder && cp -r resources/electronbuilder/* ~/.cache/electron-builder && chmod -R +x node_modules && build --win --publish always",

I manually downloaded winCodeSign-1.9.0 and pushed that inside~/.cache/electron-builder
But electron builder is still try to download that from github and throws error

electron-builder 19.28.4
No native production dependencies
Packaging for win32 x64 using electron 1.7.6 to dist/win-unpacked
Downloading winCodeSign-1.9.0, please wait
Warning: Cannot download winCodeSign, attempt #1: Error: getaddrinfo ENOTFOUND github.com github.com:443
Error: getaddrinfo ENOTFOUND github.com github.com:443

Am I missing any steps

Thanks
Jk

question

Most helpful comment

Set env ELECTRON_BUILDER_CACHE to your custom cache location. Consider to use 19.53.4 version.

All 2 comments

Set env ELECTRON_BUILDER_CACHE to your custom cache location. Consider to use 19.53.4 version.

@develar I'm setting the electron builder cache env variable to a location that includes the nsis cache and the wincodesign cache and it isnt pulling it from there. It's still trying to pull it from github. I'm doing this via a pipeline build and I can't have it pull the binaries from github due to proxy.

Was this page helpful?
0 / 5 - 0 ratings