Skip to content

Commit 028e6d2

Browse files
committed
add readme
1 parent b7b7800 commit 028e6d2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# base on
2+
3+
fork from https://github.com/Microsoft/react-native-code-push examples
4+
5+
# iOS eg.
6+
7+
```shell
8+
$ git clone [email protected]:lisong/code-push-demo-app.git
9+
$ cd code-push-demo-app
10+
$ npm install
11+
$ open ios/CodePushDemoApp.xcodeproj
12+
```
13+
14+
# android eg.
15+
16+
```shell
17+
$ git clone [email protected]:lisong/code-push-demo-app.git
18+
$ cd code-push-demo-app
19+
$ npm install
20+
$ cd android
21+
$ ./gradlew assembleRelease
22+
$ cd app/build/outputs/apk #install app-release.apk into your phone
23+
```
24+
25+
# codepush 热更新
26+
27+
```shell
28+
$ code-push login http://api.code-push.com #登录code-push-server
29+
$ code-push app add CodePushReactNativeDemo-ios ios react-native #iOS版
30+
$ code-push app add CodePushReactNativeDemo-android android react-native #android版
31+
$ cd code-push-demo-app
32+
$ npm install
33+
$ code-push release-react CodePushReactNativeDemo-ios ios -d Production #发布到code-push-server ios
34+
$ code-push release-react CodePushReactNativeDemo-android android -d Production #发布code-push-server android
35+
```

0 commit comments

Comments
 (0)