gulp构建打包,我现在就是用的jenkins 自动打包的 CocosCreator添加环境变量
// 构建为web-mobile项目
gulp.task('build-wm', function (cb) {
gulp.src('.', {
read: false
})
.pipe(shell([
CocosCreator+ ' --path . --build "platform=web-mobile;debug=false;inlineSpriteFrames=true;inlineSpriteFrames_native=true;optimizeHotUpdate=true;"'
]))
.on("end", cb);
});