您的位置:首页 > 移动开发 > Cocos引擎

被放弃的CocosStudio也支持命令发布资源

2017-05-24 21:10 537 查看
MacBook-Pro:~ apple$ /Applications/Cocos/Library/Cocos.Tool publish
2017-05-24 21:00:06.959 Cocos.Tool[41524:1575455] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
The provided command was badly formatted!

publish [options] <-f --file> <css file path> <-o --out> <out dir>

-w --whole Publish all resources.
-r --reference Publish reference resources.
-s --small Only publish project files(.csd、.csi).
-f --file The solution file(.ccs)path(absolute).
-o --out Publish path (absolute/relative).
-d --dataformat <serializer>
Publish data format,Default:csb File(Binary).
1. Serializer_FlatBuffers:
csb File (Binary). FlatBuffers is employed to read
binary files, featuring in high efficiency, small-
e size, significant security. Support Cocos2d-x C+
+ and LuaBinding.
2. Serializer_Json:
JSON File. Lightweight data transfer format, good
readability, native support for JavaScript. Suppor-
t Cocos2d-JS.
3. Serializer_Lua:
Lua File. Good readability and scalability. Suppor-
t Cocos2d-x LuaBinding.
常用参数
-w 是否全部发布
-r 发布引用资源
-s 仅发布.csd和.csi
-f 要发布的ccs项目的.ccs文件
-o 输出目录,可以是绝对和相对目录
-d 输入csd文件格式默认是csb。可选json和lua

/Applications/Cocos/Library/Cocos.Tool publish -f /Users/apple/TestProject/TestProject.ccs -o res -w
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息