Spawn a child process in Electron

后端 未结 4 1038
野的像风
野的像风 2020-12-09 10:04

I\'m using Node v6.2.2 and Electron v1.2.5.

I have a small application that I\'ve built on top of Electron and now I need to fork the process to run som

4条回答
  •  没有蜡笔的小新
    2020-12-09 10:05

    Finally, I've solved it.

    The way I solved this is doing exactly the reverse, NodeJS is available on the production machines so I just wrote a start.js script that basically spawn a child process to run Electron and on the parent process I'm running this long running task and finally I'm using IPC to communicate between the two processes.

提交回复
热议问题