question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build on an armv7l architecture ends up with "Cannot set machine from deb_arch 'armv7l'

See original GitHub issue
  • Version: electron-builder@20.28.4

electron-update@3.0.3

  • Target: Linux (armv7l) for AppImage

Hello everyone, I am trying to build my app with electron builder and publish it to my github repo, so I use the command electron-builder --linux --armv7l -p always but it ends with a “Cannot set machine from deb_arch armv7l”. Then, my app cannot be published and the file “latest-linux-arm.yml” is not generated. Any advice ? Thanks ! 2018-09-27-120744_1360x768_scrot

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
jtc42commented, Jul 4, 2019

Just in case it helps at all, we’re currently building a project for Raspberry Pi, both .deb and AppImage, using the electron-builder config:

extends: app/builder-config-base.yaml
electronVersion: 3.0.13
linux:
  target:
    - target: deb
      arch:
        - armv7l
    - target: appImage
      arch:
        - armv7l
  icon: app/icons/png/
  category: Science
deb:
  fpm: ['--architecture', 'armhf']

This has been working on a Ubuntu x64 machine, WSL on a Windows machine, and on our GitLab CI. Everything builds and runs just fine on Raspbian Stretch and Buster, tested on Pi 2, 3, and 4.

It looks like Raspbian Buster actually includes an updated glibc so it may even be that you can build with newer versions of Electron. I’ll be trying that soon.

1reaction
develarcommented, Jul 4, 2019

Is this with native node modules too?

No, this bloody situation when one arch is named differently for each tool (node, go, linux, package convention and so on) doesn’t affect node modules because historically I did mistake and started to implement electron-builder in NodeJS instead of Go, so, node platform arch name is first in this name chain 😃

node-gyp does not support cross compilation so we’re still building our native modules and packaging on the Pi.

You just need to ask author of such module to use https://github.com/prebuild/prebuild If it is your own code, then yeach, no way (yes, soon free electron-build service will support ARM in addition to x64, but I am not going to support NodeJS native modules for security reasons, only platform packages for deb/snap/etc will be supported)).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry pi 4 shows armv7l at lscpu command?
This is normal. Raspbian is 32 bit and the ARM cores are running 32 bit mode (AArch32) which shows up as armv7. In...
Read more >
Electron-builder build for all architectures, platform, and build ...
I am using ubuntu machine 20.x . I am using electron-packager to build electron apps. I wish to use Electron-package build for all ......
Read more >
NVIDIA CUDA Installation Guide for Linux
CUDA® is a parallel computing platform and programming model invented by NVIDIA. It enables dramatic increases in computing performance by harnessing the ...
Read more >
Is armv7l 32 or 64 bit? - Ask Ubuntu
The ARMv8 architecture introduces 64-bit support to the ARM architecture with a focus on power-efficient implementation while maintaining ...
Read more >
ARM architecture family - Wikipedia
ARM is a family of reduced instruction set computer (RISC) instruction set architectures for computer processors, configured for various environments.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found