electron / rebuild

Package to rebuild native Node.js modules against the currently installed Electron version
MIT License
1.03k stars 175 forks source link

Crossbuild for Raspberry Pi 3 (ARM) #243

Open Centurius123 opened 6 years ago

Centurius123 commented 6 years ago

Hello,

I create a Electronjs application for my raspberry pi. My gitlab project use the gitlab ci pipeline and I tried to add the npm package 'onoff'. Now I wont to crossbuild my electronjs app on a x64 docker.

I tried .\node_modules\.bin\electron-rebuild - - arch=arm but IT doesn't work.

cyrilfr commented 4 years ago

I've the same issue, how to cross-rebuild?

npm run rebuild --arch=arm

Solution: Pass the npm args as an arg:

npm run rebuild -- --arch=arm