// gui = global.window.nwDispatcher.requireNwGui() --original
// gui = window.require('nw.gui')
gui = require('nw.gui')

 可以尝试以上几种获取gui的方式。

相关文章: