# clitool **Repository Path**: wants_hot_pot/clitool ## Basic Information - **Project Name**: clitool - **Description**: clitool for develop - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-15 - **Last Updated**: 2022-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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 ``` 2. 导出spine ```shell cct spine ``` 3. 发布 ``` 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. ```