electron / packager

Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI
https://npm.im/@electron/packager
BSD 2-Clause "Simplified" License
154 stars 17 forks source link

ECONNRESET on Linux when packaging different operating systems. #1023

Closed baljkr closed 5 years ago

baljkr commented 5 years ago

When trying to package an Electon app, I'm getting an ECONNRESET error when I target Mac or Win32 from a Linux OS. I can package/target Linux with no issues. Here is where the command stops:

2019-06-28T15:27:53.022Z electron-packager Electron Packager 14.0.0 Node v9.8.0 Host Operating system: linux (x64) 2019-06-28T15:27:53.023Z electron-packager Packager Options: {"_":["."],"deref-symlinks":true,"derefSymlinks":true,"download":{"rejectUnauthorized":true,"reject-unauthorized":true},"junk":true,"prune":true,"overwrite":true,"platform":"darwin","arch":"x64","out":"release-builds","dir":".","protocols":[]} 2019-06-28T15:27:53.024Z electron-packager Target Platforms: darwin 2019-06-28T15:27:53.024Z electron-packager Target Architectures: x64 2019-06-28T15:27:53.030Z electron-packager Inferring application name from name in /builds/incredsible-app/incredsible-app/src/obj/desktop/win/package.json 2019-06-28T15:27:53.030Z electron-packager Inferring appVersion from version in /builds/incredsible-app/incredsible-app/src/obj/desktop/win/package.json 2019-06-28T15:27:53.032Z electron-packager Inferring target Electron version from electron in /builds/incredsible-app/incredsible-app/src/obj/desktop/win/package.json 2019-06-28T15:27:53.032Z electron-packager Application name: electron.net.host 2019-06-28T15:27:53.032Z electron-packager Target Electron version: 5.0.6 2019-06-28T15:27:53.032Z electron-packager Ignored path regular expressions: [ '/\.git($|/)', '/node_modules/\.bin($|/)', '\.o(bj)?$', '/tmp/electron-packager' ] 2019-06-28T15:27:53.034Z electron-packager Downloading Electron with options {"rejectUnauthorized":true,"reject-unauthorized":true,"platform":"darwin","arch":"x64","version":"5.0.6","artifactName":"electron"} read ECONNRESET

The same error when targeting Windows, can you help determine the issue?

Thanks

welcome[bot] commented 5 years ago

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

malept commented 5 years ago

Thanks for filing an issue! In order to help you with your problem, we're going to need more information about it. In particular:

baljkr commented 5 years ago

Sure, here it is:

$ ./electron-packager --version Electron Packager 14.0.0 Node v9.8.0 Host Operating system: linux (x64) $ DEBUG=electron-packager,@electron/get:* ./electron-packager . --overwrite --platform=win32 --arch=x64 --prune=true --out=release-builds 2019-06-28T16:02:02.239Z electron-packager Electron Packager 14.0.0 Node v9.8.0 Host Operating system: linux (x64) 2019-06-28T16:02:02.240Z electron-packager Packager Options: {"_":["."],"deref-symlinks":true,"derefSymlinks":true,"download":{"rejectUnauthorized":true,"reject-unauthorized":true},"junk":true,"prune":true,"overwrite":true,"platform":"win32","arch":"x64","out":"release-builds","dir":".","protocols":[]} 2019-06-28T16:02:02.240Z electron-packager Target Platforms: win32 2019-06-28T16:02:02.240Z electron-packager Target Architectures: x64 2019-06-28T16:02:02.246Z electron-packager Inferring application name from name in /builds/incredsible-app/incredsible-app/src/obj/desktop/win/package.json 2019-06-28T16:02:02.246Z electron-packager Inferring appVersion from version in /builds/incredsible-app/incredsible-app/src/obj/desktop/win/package.json 2019-06-28T16:02:02.246Z electron-packager Inferring win32metadata.CompanyName from author in /builds/incredsible-app/incredsible-app/src/obj/desktop/win/package.json 2019-06-28T16:02:02.249Z electron-packager Inferring target Electron version from electron in /builds/incredsible-app/incredsible-app/src/obj/desktop/win/package.json 2019-06-28T16:02:02.249Z electron-packager Application name: electron.net.host 2019-06-28T16:02:02.249Z electron-packager Target Electron version: 5.0.6 2019-06-28T16:02:02.249Z electron-packager Ignored path regular expressions: [ '/\.git($|/)', '/node_modules/\.bin($|/)', '\.o(bj)?$', '/tmp/electron-packager' ] 2019-06-28T16:02:02.251Z electron-packager Downloading Electron with options {"rejectUnauthorized":true,"reject-unauthorized":true,"platform":"win32","arch":"x64","version":"5.0.6","artifactName":"electron"} 2019-06-28T16:02:02.252Z @electron/get:index Checking the cache for electron-v5.0.6-win32-x64.zip 2019-06-28T16:02:02.253Z @electron/get:index Cache miss 2019-06-28T16:02:02.280Z @electron/get:index Downloading https://github.com/electron/electron/releases/download/v5.0.6/electron-v5.0.6-win32-x64.zip to /tmp/electron-download-Ikm7OM/electron-v5.0.6-win32-x64.zip with options: undefined read ECONNRESET

KenneticKoncepts commented 5 years ago

I have experienced the same thing, when trying to build on Linux in the same manner. I just get the read ECONNRESET.

malept commented 5 years ago

ECONNRESET is a network error, Electron Packager itself can't really do anything about it.