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

Cannot build execute : ERR_ELECTRON_BUILDER_CANNOT_EXECUTE #65

Open
VaZark opened this issue Aug 16, 2019 · 2 comments
Open

Cannot build execute : ERR_ELECTRON_BUILDER_CANNOT_EXECUTE #65

VaZark opened this issue Aug 16, 2019 · 2 comments

Comments

@VaZark
Copy link

VaZark commented Aug 16, 2019

I've tried creating an executable with yarn dist immediately after cloning and running install. However, there seems to be some setup error wrt to electron-builder.

Setup :
electron-builder version=21.0.11 os=10.0.15063
packaging platform=win32 arch=x64 electron=5.0.6 appOutDir=dist\win-unpacked

Error response :

 ⨯ C:\Data\electron-packager\new-electron-webpack-project\electron-webpack-quick-start\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=

Error: C:\Data\electron-packager\new-electron-webpack-project\electron-webpack-quick-start\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

at ChildProcess.childProcess.once.code (C:\Data\electron-packager\new-electron-webpack-project\electron-webpack-quick-start\node_modules\builder-util\src\util.ts:239:14)
at Object.onceWrapper (events.js:277:13)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
From previous event:
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
From previous event:
at WinPackager.signApp (C:\Data\electron-packager\new-electron-webpack-project\electron-webpack-quick-start\node_modules\app-builder-lib\src\winPackager.ts:357:27)
at WinPackager.doPack (C:\Data\electron-packager\new-electron-webpack-project\electron-webpack-quick-start\node_modules\app-builder-lib\src\platformPackager.ts:243:16)
error Command failed with exit code 1.

@DrakeXiang
Copy link

For my case, the log before this error message shows the downloading process has failed, something like this:

• packaging       platform=linux arch=x64 electron=5.0.6 appOutDir=dist/linux-unpacked
  • building        target=deb arch=x64 file=dist/bigbang-wallet_0.1.0_amd64.deb
  ⨯ Get https://github-production-release-asset-2e65be.s3.amazonaws.com/65527128/8187de64-0380-11e8-8b0a-740414019652?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191101%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191101T033938Z&X-Amz-Expires=300&X-Amz-Signature=4b1c528307264919758099cec0288a77d69e4b4afb53d8f2511d2c7d2e666d65&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dfpm-1.9.3-2.3.1-linux-x86_64.7z&response-content-type=application%2Foctet-stream: dial tcp 52.216.65.72:443: connect: connection timed out
github.com/develar/app-builder/pkg/download.(*Downloader).follow.func1
	/Volumes/data/Documents/app-builder/pkg/download/downloader.go:158
github.com/develar/app-builder/pkg/download.(*Downloader).follow
	/Volumes/data/Documents/app-builder/pkg/download/downloader.go:186
github.com/develar/app-builder/pkg/download.(*Downloader).Download
	/Volumes/data/Documents/app-builder/pkg/download/downloader.go:80
github.com/develar/app-builder/pkg/download.DownloadArtifact
	/Volumes/data/Documents/app-builder/pkg/download/artifactDownloader.go:107
github.com/develar/app-builder/pkg/download.DownloadFpm
	/Volumes/data/Documents/app-builder/pkg/download/tool.go:28
github.com/develar/app-builder/pkg/package-format/fpm.ConfigureCommand.func1
	/Volumes/data/Documents/app-builder/pkg/package-format/fpm/fpm.go:40
github.com/alecthomas/kingpin.(*actionMixin).applyActions
	/Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/actions.go:28

I got this fixed referencing this issue: electron-userland/electron-builder#1859

@spcBackToLife
Copy link

spcBackToLife commented Dec 2, 2020

这里有详细的描述解决了此问题
https://juejin.cn/post/6901564623091138567/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants