current position:Home>How does robotjs set automatic rebuild in electronic build

How does robotjs set automatic rebuild in electronic build

2022-02-02 23:48:35 CSDN Q & A

The phenomenon and background of the problem

dev Environment , Used electron-rebuild Recompile , To match electron Version and built-in node edition .Dev The environment is running normally .

But in use electron-builder Pack it up dmg After installing the package ,node And electron The problem of inconsistent versions still appears . explain , stay build In the process of , Did not re rebuild robotjs.

img

My solution ideas and tried methods

Tried :

  1. scripts Add inside
"rebuild": "electron-rebuild -f -w robotjs",
  1. scripts Add in
"rebuild": "npm rebuild --runtime=electron --target=13.1.9 --disturl=https://atom.io/download/atom-shell --abi=83"
What I want to achieve

How to set it correctly electron build, In order to package correctly rebuild robotjs?




Refer to the answer 1:

cannot find module robotjs?




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022348331296.html

Random recommended