Closed
Description
- Version: 19.12.0
For some reason, the building process could not download winCodeSign, nsis-resources and other files automatically, always get timeout errors(maybe blocked by some wall). Could I just download the electron-builder-binaries zip from github or some other sites and extract to a specific folder so i can skip the download process when building my app? Thx
Activity
develar commentedon Jul 25, 2017
Yes — https://github.com/electron-userland/electron-builder-binaries/releases
develar commentedon Jul 25, 2017
https://github.com/electron-userland/electron-builder-binaries/releases/tag/winCodeSign-1.9.0
develar commentedon Jul 25, 2017
https://github.com/electron-userland/electron-builder-binaries/releases/tag/nsis-resources-3.0.0
develar commentedon Jul 25, 2017
Unpack using 7z to cache dir.
evollhhan commentedon Jul 25, 2017
Many thanks for prompt reply.
SaromChars commentedon Aug 8, 2017
where are these tool files should be put in ??
develar commentedon Aug 8, 2017
macOS:
~/Library/Caches/electron-builder
Linux:
~/.cache/electron-builder
windows:
%LOCALAPPDATA%\electron-builder\cache
develar commentedon Aug 8, 2017
SaromChars commentedon Aug 9, 2017
thx!!!
develar commentedon Aug 22, 2017
Zip file (92MB) to extract instead of tedios downloading: https://drive.google.com/uc?export=download&id=0Bz3JwZ-jqfROc1FNT25FeTVoRWM
Or 7z archive (40MB) https://drive.google.com/uc?export=download&id=0Bz3JwZ-jqfRORjZTa3FPWUpJT0E
4 remaining items
divefox commentedon Oct 10, 2018
mark & thx!
ZhouHansen commentedon Feb 1, 2019
@develar Could you please explain this question in detail?
I use windows, and the files unzipped from the winCodeSign-2.4.0 which I downloaded manually are below:
And in
%LOCALAPPDATA%\electron-builder\cache
, there's awinCodeSign
directory, which files should I put into thewinCodeSign
directory?And after put the right thing to
winCodeSign
directory, when I runnpm run builder
, will electron-builder still download thewinCodeSign
automatically?@SaromChars 新年好!能告诉我怎么解决这个问题么?我的微信:vm140706
Gabrielkaliboy commentedon Jun 19, 2019
Can you change these files to another storage location?Current storage locations are painful for Chinese developers
BadReese commentedon Feb 1, 2020
In China , simply use command ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ npm run dist
Ahmedkholaif commentedon Feb 26, 2020
this file isn't available anymore. how can I get it?
and how to skip the download stage and read from the cache?
thanx for the great efforts
rohitisinhk commentedon Apr 12, 2020
nsis-resources now reside under nsis
mohamed-assif-z commentedon Oct 19, 2020
nsis-resources-3.4.1.7z always downloading even after manually downloaded and inserted into "%LOCALAPPDATA%\electron-builder\cache"
• electron-builder version=22.9.1 os=10.0.18363
• loaded configuration file=package.json ("build" field)
• loaded parent configuration preset=react-cra
• description is missed in the package.json appPackageFile=C:\Local Disk\Web_Designing_Projects\Practice(Updated)\euro_lights\client\package.json
• writing effective config file=dist\builder-effective-config.yaml
• packaging platform=win32 arch=x64 electron=10.1.3 appOutDir=dist\win-unpacked
• default Electron icon is used reason=application icon is not set
• building target=nsis file=dist\test Setup 0.1.0.exe archs=x64 oneClick=true perMachine=false
⨯ Get "https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z": proxyconnect tcp: dial tcp :0: connectex: The requested address is not valid in its context.
github.com/develar/app-builder/pkg/download.(*Downloader).follow.func1
Y:/Documents/app-builder/pkg/download/downloader.go:206
github.com/develar/app-builder/pkg/download.(*Downloader).follow
Y:/Documents/app-builder/pkg/download/downloader.go:234
github.com/develar/app-builder/pkg/download.(*Downloader).DownloadNoRetry
Y:/Documents/app-builder/pkg/download/downloader.go:128
github.com/develar/app-builder/pkg/download.(*Downloader).Download
Y:/Documents/app-builder/pkg/download/downloader.go:112
github.com/develar/app-builder/pkg/download.DownloadArtifact
Y:/Documents/app-builder/pkg/download/artifactDownloader.go:107
github.com/develar/app-builder/pkg/download.ConfigureArtifactCommand.func1
Y:/Documents/app-builder/pkg/download/artifactDownloader.go:27
github.com/alecthomas/kingpin.(*actionMixin).applyActions
C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/actions.go:28
github.com/alecthomas/kingpin.(*Application).applyActions
C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:557
github.com/alecthomas/kingpin.(*Application).execute
C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:390
github.com/alecthomas/kingpin.(*Application).Parse
C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:222
main.main
Y:/Documents/app-builder/main.go:90
runtime.main
c:/go/src/runtime/proc.go:203
runtime.goexit
c:/go/src/runtime/asm_amd64.s:1373
⨯ C:\Local Disk\Web_Designing_Projects\Practice(Updated)\euro_lights\client\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace=
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test@0.1.0 electron-pack:
electron-builder build --win -c.extraMetadata.main=build/electron.js --publish never
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test@0.1.0 electron-pack script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Roaming\npm-cache_logs\2020-10-19T05_25_01_242Z-debug.log
mohamed-assif-z commentedon Oct 19, 2020
I have solved this issue by
C:\Users\xxx\AppData\Local\electron-builder\cache
winCodeSign\winCodeSing-2.6.0
nsis\nsis-3.0.4.1
nsis\nsis-resources-3.4.0
shayded-exe commentedon Nov 9, 2022
@develar It would be very useful if this information could be included in the documentation. I had to spend hours searching to deal with this.
There also doesn't seem to be any easy way to get the latest release of each of the binaries without manually going through the github releases and downloading each one. It would be nice if there was a page that linked to the latest release of each package.
thisang commentedon Jan 29, 2024
I've got the same problem.
so I downloaded this file and unzipped to
/Libary/Caches/electron-builder/wine/wine-4.0.1-mac
, when I running it again, it shows:I changed the permissions on that directory to everyone can read and write,but it does'nt work。
what should I do?
DanLowo commentedon Feb 20, 2024
For those having this issue on Windows. It turns out the Windows firewall blocks requests to objects.github for some reason.
You can resolve this by turning off the firewall either public or private (depending on your network setup)