Skip to content

Commit dd3572f

Browse files
committed
readme
1 parent 5875af6 commit dd3572f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
```

0 commit comments

Comments
 (0)