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

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


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值