File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ # base on
2+
3+ fork from https://github.com/Microsoft/react-native-code-push examples
4+
5+ # iOS eg.
6+
7+ ``` shell
8+ $ cd /path/to/code-push-demo-app
9+ $ npm install
10+ $ open ios/CodePushDemoApp.xcodeproj
11+ ```
12+
13+ # android eg.
14+
15+ ``` shell
16+ $ cd /path/to/code-push-demo-app
17+ $ npm install
18+ $ cd android
19+ $ ./gradlew assembleRelease
20+ $ cd app/build/outputs/apk # install app-release.apk into your phone
21+ ```
22+
23+ # codepush 热更新
24+
25+ ``` shell
26+ $ code-push login http://api.code-push.com:8080 # 登录code-push-server
27+ $ code-push app add CodePushReactNativeDemo-ios ios react-native # iOS版
28+ $ code-push app add CodePushReactNativeDemo-android android react-native # android版
29+ $ cd /path/to/code-push-demo-app
30+ $ npm install
31+ $ code-push release-react CodePushReactNativeDemo-ios ios -d Production # 发布到code-push-server ios
32+ $ code-push release-react CodePushReactNativeDemo-android android -d Production # 发布code-push-server android
33+ ```
You can’t perform that action at this time.
0 commit comments