被放棄的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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章