Electron doesn't support aarch64 builds compiled from aarch64 hosts yet (so you have to cross compile), and doesn't support cross compiling if you have any native code addons.
Some apps out there are between a rock and a hard place if it weren't for rosetta.