Install Electron app on ARM64-based Windows device

I am trying to build my electron app for Arm running Windows. Following these official Electron docs, I

  • emptied my app’s node_modules directory
  • ran this command from Command Prompt: set npm_config_arch=arm64
  • ran yarn to install packages

The build was successful but the installer gave an error with this message:
“64-bit Windows is required”

My machine is a Surface Pro X running windows 10 Home edition with an ARM64-based architecture.