cordova code-push 热更新例子
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hooks
www
.gitignore
README.md
config.xml
package.json

README.md

code-push-cordova-demo-app

base on

fork from https://github.com/Microsoft/cordova-plugin-code-push examples

iOS eg.

$ cd /path/to/code-push-cordova-demo-app
$ cordova prepare
$ cordova run ios

android eg.

$ cd /path/to/code-push-cordova-demo-app
$ cordova prepare
$ cordova run android

codepush 热更新

$ code-push login http://api.code-push.com #登录code-push-server
$ code-push app add CodePushCordovaDemo-ios  #iOS版
$ code-push app add CodePushCordovaDemo-android #android版
$ cd /path/to/code-push-cordova-demo-app
$ cordova prepare
$ code-push release-cordova CodePushCordovaDemo-ios ios -d Production #发布到code-push-server ios
$ code-push release-cordova CodePushCordovaDemo-android android -d Production #发布code-push-server android