Cocos Studio 命令行方式如何发布项目

cocos Studio 命令行方式如何发布项目

顶起来,有人知道吗?

up, 这个需求, 我也提很久了…
希望早日用上

目前命令行工具已经随安装包一起安装;
Win:安装路径下Cocos.Tool.exe
Mac:Applications/Cocos/Cocos Studio 2,显示包内容 MacOS/Cocos.Tool(不是Cocos.Tool.exe)

在命令提示符处键入以下内容:
publish <-f --file> <-o --out>
参数
<-f --file> 要发布资源的项目文件路径(.ccs)(支持 绝对路径)
<-o --out> 发布资源的目标路径(支持 相对/绝对路径)
选项
-a --all 发布所有资源
-s -small 仅发布项目文件
<-d --dataformat> 数据格式,默认为csb文件(二进制)

Sample:
1:cocos.tool publish -a -d Serializer_FlatBuffers -f D:\CocosProject19\CocosProject19.ccs -o res_csb
发布项目D:\CocosProject19 到目标路径res_csb
发布:资源与项目文件
数据格式为 csb文件(二进制)

2:cocos.tool publish -s -d Serializer_Json -f D:\CocosProject19\CocosProject19.ccs -o res_json
发布项目D:\CocosProject19 到目标路径res_json
发布:仅项目文件
数据格式为 Json文件

补充:
Mac上找到Applications/Cocos/Cocos Studio 2,显示包内容 MacOS/Cocos.Tool,拖动Cocos.Tool到终端,或者键入以下内容:

/Applications/Cocos/Cocos\ Studio\ 2.app/Contents/MacOS/Cocos.Tool publish <-f --file> <-o --out>

:14:很好用,多谢

使用合图后,这个工具就会报错,但是用cocosStudio发布数据是正常的。

在MAC下会报这样的错误:
2015-11-29 23:34:10.420 Cocos.Tool *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
-a --all (Obsoleted. Please use -r --reference instead)objc: Class AVAudioPlayer is implemented in both /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAudio.dylib and /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS//libcocos2d Mac.dylib. One of the two will be used. Which one is undefined.
objc: Class GLFWWindowDelegate is implemented in both /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS//libcocos2d Mac.dylib and /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS/libglfw.3.0.dylib. One of the two will be used. Which one is undefined.
objc: Class GLFWApplicationDelegate is implemented in both /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS//libcocos2d Mac.dylib and /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS/libglfw.3.0.dylib. One of the two will be used. Which one is undefined.
objc: Class GLFWContentView is implemented in both /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS//libcocos2d Mac.dylib and /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS/libglfw.3.0.dylib. One of the two will be used. Which one is undefined.
objc: Class GLFWWindow is implemented in both /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS//libcocos2d Mac.dylib and /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS/libglfw.3.0.dylib. One of the two will be used. Which one is undefined.
objc: Class GLFWApplication is implemented in both /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS//libcocos2d Mac.dylib and /Applications/Cocos/Cocos Studio 2.app/Contents/MacOS/libglfw.3.0.dylib. One of the two will be used. Which one is undefined.

$ /Applications/Cocos/Cocos\ Studio\ 2.app/Contents/MacOS/Cocos.Tool ; exit;
2015-11-29 23:38:12.279 Cocos.Tool *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

cocos tool(2.3.3.0) - cocos console:A command line tool for cocos

Available commands:
publish Publish a project to destination dir

Available arguments:
-h --help Show help information
-v --version Show the version of this command tool
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.
Deleting expired sessions…27 completed.

如果有官方的人可以试试在mac os 下的指令 肯定是有问题的