Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error downloading electron-builder required tools files #1859

Closed
evollhhan opened this issue Jul 25, 2017 · 19 comments
Closed

Error downloading electron-builder required tools files #1859

evollhhan opened this issue Jul 25, 2017 · 19 comments
Labels

Comments

@evollhhan
Copy link

@evollhhan evollhhan commented Jul 25, 2017

  • 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

@develar develar closed this Jul 25, 2017
@develar
Copy link
Member

@develar develar commented Jul 25, 2017

Unpack using 7z to cache dir.

@evollhhan
Copy link
Author

@evollhhan evollhhan commented Jul 25, 2017

Many thanks for prompt reply.

@SaromChars
Copy link

@SaromChars SaromChars commented Aug 8, 2017

where are these tool files should be put in ??

@develar
Copy link
Member

@develar develar commented Aug 8, 2017

macOS: ~/Library/Caches/electron-builder
Linux: ~/.cache/electron-builder
windows: %LOCALAPPDATA%\electron-builder\cache

@develar
Copy link
Member

@develar develar commented Aug 8, 2017

.
├── AppImage
│   └── AppImage-17-06-17-mac
├── AppImage-packages
│   └── 10.03.17
├── Squirrel.Windows
│   └── Squirrel.Windows-1.6.0.0
├── fpm
│   └── fpm-1.8.1-20150715-2.2.2
├── linux-tools
│   └── linux-tools-mac-10.12
├── nsis
│   └── nsis-3.0.1.13
├── nsis-resources
│   └── nsis-resources-3.1.0
├── winCodeSign
│   └── winCodeSign-1.9.0
└── wine
    └── wine-2.0.1-mac-10.12
@SaromChars
Copy link

@SaromChars SaromChars commented Aug 9, 2017

thx!!!

@develar
Copy link
Member

@develar develar commented Aug 22, 2017

@myfrndjk
Copy link

@myfrndjk myfrndjk commented Jan 8, 2018

Hi,

I also face a similar problem.
I downloaded all dependencies from https://drive.google.com/uc?export=download&id=0Bz3JwZ-jqfROc1FNT25FeTVoRWM

keep that in my project/resources folder.
when I try to create and cache/electron-builder and cp to it I am getting following error

Error: ENOENT: no such file or directory, stat '/Users/develar/Desktop'
How to fix this error

Thanks
Jk

zdenekdrahos added a commit to costlocker/desktop that referenced this issue Aug 16, 2018
electron-userland/electron-builder#1859 (comment)
https://ci.appveyor.com/project/costlockerbot/desktop/build/1.0.46/job/rq91al8t01lew11a
Get https://...: dial tcp 52.216.229.251: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.
@divefox
Copy link

@divefox divefox commented Oct 10, 2018

mark & thx!

@ZhouHansen
Copy link

@ZhouHansen ZhouHansen commented Feb 1, 2019

@develar Could you please explain this question in detail?

where are these tool files should be put in ??

I use windows, and the files unzipped from the winCodeSign-2.4.0 which I downloaded manually are below:

_20190201174951

And in %LOCALAPPDATA%\electron-builder\cache, there's a winCodeSign directory, which files should I put into the winCodeSign directory?

And after put the right thing to winCodeSign directory, when I run npm run builder, will electron-builder still download the winCodeSign automatically?

@SaromChars 新年好!能告诉我怎么解决这个问题么?我的微信:vm140706

@Gabrielkaliboy
Copy link

@Gabrielkaliboy Gabrielkaliboy commented Jun 19, 2019

Can you change these files to another storage location?Current storage locations are painful for Chinese developers

@BadReese
Copy link

@BadReese BadReese commented Feb 1, 2020

In China , simply use command ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ npm run dist

@Ahmedkholaif
Copy link

@Ahmedkholaif Ahmedkholaif commented Feb 26, 2020

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

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
Copy link

@rohitisinhk rohitisinhk commented Apr 12, 2020

.
├── AppImage
│   └── AppImage-17-06-17-mac
├── AppImage-packages
│   └── 10.03.17
├── Squirrel.Windows
│   └── Squirrel.Windows-1.6.0.0
├── fpm
│   └── fpm-1.8.1-20150715-2.2.2
├── linux-tools
│   └── linux-tools-mac-10.12
├── nsis
│   └── nsis-3.0.1.13
├── nsis-resources
│   └── nsis-resources-3.1.0
├── winCodeSign
│   └── winCodeSign-1.9.0
└── wine
    └── wine-2.0.1-mac-10.12

nsis-resources now reside under nsis

@mohamed-assif-z
Copy link

@mohamed-assif-z mohamed-assif-z commented Oct 19, 2020

nsis-resources-3.4.1.7z always downloading even after manually downloaded and inserted into "%LOCALAPPDATA%\electron-builder\cache"

electron-builder build --win -c.extraMetadata.main=build/electron.js --publish never

• 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=

                         Error: 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

                             at ChildProcess.<anonymous> (C:\Local Disk\Web_Designing_Projects\Practice(Updated)\euro_lights\client\node_modules\builder-util\src\util.ts:243:14)

                             at Object.onceWrapper (events.js:421:26)

                             at ChildProcess.emit (events.js:314:20)

                             at maybeClose (internal/child_process.js:1051:16)

                             at Socket.<anonymous> (internal/child_process.js:442:11)

                             at Socket.emit (events.js:314:20)

                             at Pipe.<anonymous> (net.js:673:12)

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
Copy link

@mohamed-assif-z mohamed-assif-z commented Oct 19, 2020

nsis-resources-3.4.1.7z always downloading even after manually downloaded and inserted into "%LOCALAPPDATA%\electron-builder\cache"

electron-builder build --win -c.extraMetadata.main=build/electron.js --publish never

• 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=

                         Error: 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

                             at ChildProcess.<anonymous> (C:\Local Disk\Web_Designing_Projects\Practice(Updated)\euro_lights\client\node_modules\builder-util\src\util.ts:243:14)

                             at Object.onceWrapper (events.js:421:26)

                             at ChildProcess.emit (events.js:314:20)

                             at maybeClose (internal/child_process.js:1051:16)

                             at Socket.<anonymous> (internal/child_process.js:442:11)

                             at Socket.emit (events.js:314:20)

                             at Pipe.<anonymous> (net.js:673:12)

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

I have solved this issue by

  1. Dont create seperate folder "nsis-resources" in cache directory
  2. Extracted "nsis-resources-3.4.1.7z" folder should be placed inside "nsis" folder inside cache directory
    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet