1 Star 0 Fork 0

baimingjiang / clitool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

CLITool 使用说明

安装pip

  • 检查安装pip是否安装
    打开命令行工具, 执行 `pip -V`, 如果显示pip版本说明已经有pip, 直接执行后面的内容。
  • 安装pip
    1. 到https://pip.pypa.io/en/latest/installing/#python-os-support下载get-pip.py
    2. 执行 python get-pip.py
    3. 添加环境变量:这个路径是pip.exe所在路径,一般在python的安装目录下,python\scripts

安装clitool

  • 更新CLITool最新

        git clone https://gitee.com/wants_hot_pot/clitool.git
        cd clitool
        git pull
  • 安装CLITool

      切换到CLITool目录, 执行
      pip install .
  • 卸载CLITool

      pip uninstall cct

项目配置

    1. 全局配置文件:config.yaml
    2. 项目配置文件:config.项目名称.yaml
    3. 重新安装:pip install .
    4. 参数配置:
        - platforms 平台,比如纹理资源不同平台会导出不同格式
        - project 项目设置,设置名称/路径/配置输出路径/spine输出路径/纹理输出路径等
        - config_path: 配置路径
        - spine_path:spine路径
    

调用方式

打开终端,执行 `cct`

使用示例

  1. 帮助
    cct --help
  1. 导出spine
    cct spine
  1. 发布
    cct publish -n ashy -m debug -p wechatgame

    帮助
    cct publish --help

    Usage: cct publish [OPTIONS]

    构建CocosCreator项目

    Options:
    -n, --name TEXT                 project name
    -m, --mode [debug|release]      Select publish mode.
    -p, --platform [wechatgame|android|ios|win32|huawei]
                                    Build platform.  [required]
    --help                          Show this message and exit.
MIT License Copyright (c) 2019 baimingjiang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

clitool for develop 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/wants_hot_pot/clitool.git
git@gitee.com:wants_hot_pot/clitool.git
wants_hot_pot
clitool
clitool
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891