1.0.6 • Published 7 months ago

cocoscreator-tools v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

CocosCreator Tools

Node.js Package NPM version Cocos Creator命令行工具集。

Install

npm install -g cocoscreator-tools

Usage

cct d|decrypt <jsc file path> #解密jsc
        -xxtea <xxtea key> \
        -compress|-zip #可选,标记该js是否被压缩

cct e|encrypt <js file path> \ #加密js
        -xxtea <xxtea key> \
        -compress|-zip #可选,标记该js是否被压缩

cct u2b <uuid> #uuid转base64
cct b2u <base64> #base64转uuid

# 以下为实验性功能,可能存在较多Bug,完善中
cct up|unpack <apk path> \ #apk解包
        -output <output apk assets path> \

cct p|pack <apk assets path> \ #apk打包
        -output <output apk path> \
        -keystore <keystore path> \ #可选,不传将使用工具内debug.keystore
        -storepass <keystore password> \ #仅在传入-keystore时需要
        -alias <keystore alias> \ #仅在传入-keystore时需要
        -keypass <keystore alias password> \ #仅在传入-keystore时需要

cct web <build out> \ #缩放Web构建后的图片,再在游戏中加载放大。用于发布对效果要求不高的广告情况下,压缩包体
        -resize-image <scale number>

# 保存默认配置,之后的命令未输入相关参数时使用默认配置
cct config set -xxtea|-keystore|-storepass|-alias|-keypass value
cct config set -compress true|false

cct config del -xxtea|-keystore|-storepass|-alias|-keypass|-compress # 删除默认配置
cct config get -xxtea|-keystore|-storepass|-alias|-keypass|-compress # 显示默认配置,不输入key则显示全部
1.0.6

7 months ago

1.0.5

10 months ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago