File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-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
+ $ 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
+ ```
You can’t perform that action at this time.
0 commit comments