HOT PUSH 记录
- 安装依赖
yarn global add code-push-cli
yarn add react-native-code-push
react-native link
code-push-cli 简单使用
添加APP
code-push app add RnHotUpdateDemo ios react-native
查看部署环境KEY
code-push deployment ls <appName> -k
部署环境添加、删除、重命名
code-push deployment add <appName> <deploymentName>
code-push deployment rm <appName> <deploymentName>
code-push deployment rename <appName> <deploymentName> <newDeploymentName>
提交新的更新
[E.g] code-push release-react <appName> <platform> --des '修复BUG' -t 1.06
code-push release-react <appName> <platform>
[--bundleName <bundleName>]
[--deploymentName <deploymentName>] `//(部署环境名)参数 -d`
[--description <description>] `//(描述)参数 -des`
[--development <development>]
[--disabled <disabled>] `"(设为补丁,不可被下载) -x"`
[--entryFile <entryFile>]
[--gradleFile <gradleFile>]
[--mandatory] `(强制性)参数 -m`
[--noDuplicateReleaseError]
[--outputDir <outputDir>]
[--plistFile <plistFile>]
[--plistFilePrefix <plistFilePrefix>]
[--sourcemapOutput <sourcemapOutput>]
[--targetBinaryVersion <targetBinaryVersion>] `(可更新目标版本)参数 -t`
[--rollout <rolloutPercentage>]
[--privateKeyPath <pathToPrivateKey>]
[--config <config>]
查看发布的更新历史
code-push deployment history <appName> <deploymentName>
[--displayAuthor]
清楚历史
code-push deployment clear <appName> <deploymentName>