http://microsoft.github.io/code-push/
如已经安装,不需要再安装
$ npm install -g code-push-cli
创建CodePush Projects, 并记下deployment key
$ code-push app add LlgApp-iOS ios cordova
$ code-push app add LlgApp-Android android cordova
$ code-push login
$ ./codePush.sh
$ code-push login
以下二选一执行。
$ ionic cordova build ios --prod
$ ionic cordova build android --prod
$ code-push release-cordova LlgApp-iOS ios --deploymentName Production --mandatory true
$ code-push release-cordova LlgApp-Android android --deploymentName Production --mandatory true
$ code-push deployment ls LlgApp-iOS -k
$ code-push deployment ls LlgApp-Android -k
$ code-push deployment history LlgApp-iOS Production
$ code-push deployment history LlgApp-Android Production