听说你还在用开发者工具手动上传,微信小程序 miniprogram-ci
- 支持指定参数 如 robot 默认是 1,命令:
yarn run upload --robot 2
- 支持上传
yarn run upload
- 支持预览
yarn run preview
- 支持空跑,不执行
yarn run upload --dry
- 支持指定 git commit hash 和作者
- 支持单选多个小程序
yarn run upload --useSelect
- 支持选择多个批量上传
yarn run upload --useMultiSelect
参数可以相互结合。
--robot 2 [ 可选 1-30 ]
--dry 空跑
--useSelect 单选
--useMultiSelect 多选批量上传
git clone https://github.com/lxchuan12/mp-cli.git
cd mp-cli
yarn install
# 建议使用 yarn install
# 可选,未填时 输出【未设置名称】
name="若川视野-小程序1"
# 必填
projectPath="../tdesign-miniprogram-starter-retail"
# 必填
appid="wxdd3948dc1c7f95c2"
# 必填
privateKeyPath="./src/key/private.wxdd3948dc1c7f95c2.key"
# 需要支持单选和多选上传预览时 必填
# 多个小程序配置的路径
configPath="./src/config"
参考 src/config/example.json
{
"name": "若川视野的小程序-默认",
"appid": "wxdd3948dc1c7f95c2",
"privateKeyPath": "./src/key/private.wxdd3948dc1c7f95c2.key",
"projectPath": "../tdesign-miniprogram-starter-retail"
}
有空再开发