How to let server execute automatically when you start a server, with node and pack it with electron?

how to make server execute automatically when you start a server, with node and pack it with electron

Mar.25,2021

on top of main.js

let exec = require('child_process').exec;    

createWindow method (maybe some other method, which monitors the ready event of app anyway),

exec('servernode' , err => {
    if (err) {
        //...
    }
})

Let me ask how my node server can be typed into the installation package together

Menu