Electron-builder: unable to build on raspberry pi 4: Unsupported arch arm

Created on 30 Sep 2019  Â·  5Comments  Â·  Source: electron-userland/electron-builder



electron-builder version 21.2.0


target: linux on raspberry pi 4 arm board


When building the process halt with this error:

⨯ Unsupported arch arm stackTrace=
Error: Unsupported arch arm
at archFromString (/home/pi/electron/node_modules/builder-util/src/arch.ts:43:13)
at computeArchToTargetNamesMap (/home/pi/electron/node_modules/app-builder-lib/src/targets/targetFactory.ts:43:20)
at Packager.doBuild (/home/pi/electron/node_modules/app-builder-lib/src/packager.ts:422:41)
at Packager._build (/home/pi/electron/node_modules/app-builder-lib/src/packager.ts:366:57)
at Packager.build (/home/pi/electron/node_modules/app-builder-lib/src/packager.ts:330:12)
at executeFinally (/home/pi/electron/node_modules/builder-util/src/promise.ts:12:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dist: electron-builder
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dist script.

But, I have edited the function archFromString on node_modules/builder-util/out/arch.js (compiled version of arch.ts) so it's return armv7l also for arch name arm and the app is builded correctly.

backlog

Most helpful comment

Work for me:
electron-builder --dir --armv7l --linux deb

All 5 comments

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

for me it is still relevant but obviously not for others

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

It's relevant to me as well. Is there any solution to this problem?

Work for me:
electron-builder --dir --armv7l --linux deb

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antonycourtney picture antonycourtney  Â·  3Comments

omarkilani picture omarkilani  Â·  3Comments

xingoxu picture xingoxu  Â·  3Comments

StickNitro picture StickNitro  Â·  3Comments

alexstrat picture alexstrat  Â·  3Comments