chain-desktop-wallet icon indicating copy to clipboard operation
chain-desktop-wallet copied to clipboard

Problem: cannot launch in apple m1

Open leejw51crypto opened this issue 2 years ago • 1 comments

in apple m1, yarn run electron:dev not working

electron window is empty

leejw51crypto avatar Oct 29 '21 02:10 leejw51crypto

to run desktop chain wallet on apple m1 cause: electron aarch64, node-hid is x86_64 so just crash silently calling node-hid, because electron is aarch64, cannot call node-hid.node

quick solution:

arch -x86_64 /bin/bash
yarn
yarn run electron:dev
  1. final solution is to make node-hid compiled into aarch64, in yarn build

  2. or revert electron back to x86_64 on apple m1. not using arm64 binary, only x86_64 for macosx

both will work

leejw51crypto avatar Oct 30 '21 10:10 leejw51crypto