如何在gulp文件中设置Node Webkit的版本?

时间:2016-02-20 19:40:36

标签: gulp nw.js

如何在gulp文件中设置Node Webkit的版本?

我有这段代码:

var nw = new NodeWebkitBuilder({
        version: '0.12.2',
           files: ['./package.json', './app/**/*'].concat(modules),
        platforms: platforms,
        macIcns: './app/assets/icons/play-icon.icns',
        winIco: './app/assets/icons/play-icon.ico'
    })

当我运行comman gulp run时,它安装版本0.13.0 bete,我希望它版本为0.12.2。

我该怎么做?

谢谢!

1 个答案:

答案 0 :(得分:0)

以下是参考资料 - https://github.com/mllrsohn/node-webkit-builder/blob/master/example/Gulpfile.js

   var nw = new NwBuilder({ 
     version: '0.12.2',
     files: ['./package.json', './app/**/*'].concat(modules),
     platforms: platforms,
     macIcns: './app/assets/icons/play-icon.icns',
     winIco: './app/assets/icons/play-icon.ico'
   });