m4heshd / vuelectro

Bare minimum, simplistic, production ready scaffolding/build tool for developing with :electron: Electron and Vue.Js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Production build for Raspberry Pi 4

John-Wilcox opened this issue · comments

I'm evaluating vuelectro for use with Raspberry Pi 4 and am unable to build for production because of "unsupported architecture arm". The solution is to pass --arm7l to electron-builder. I've tried npm run electron:build -- -- arm7l as suggested in some threads, but that did not work.

Is it that your scripts are not allowing the option to be passed? If so, is there a quick workaround that will allow me to pass this option?

Regards

You can use arch config option in whatever target you choose inside vuelectro.config.js > electron_builder.
For an example if the target platform is linux,

"linux": {
  "target": [
    {
      "target": "AppImage",
      "arch": [
        "arm7l"
      ]
    }
  ]
}

Thank you Mahesh.