function startServer(root) {
    const shadoweditor = os.platform() === 'win32' ? 'ShadowEditor.exe' : './ShadowEditor';
    server = subprocess.spawn(shadoweditor, ['serve', '--config', './config.toml'], {
        cwd: root
    });
    server.stdout.on('data', data => {
        log(data.toString());
    });
    server.stderr.on('data', data => {
        log(data.toString());
    });
    server.on('SIGTERM', data => {
        server.exit(0);
        log('shadow editor close');
    });
}
Start ShadowEditor server
@param {String} root electron root path