CodePush Server source
CodePush Server is a CodePush progam server! microsoft CodePush cloud is slow in China, we can use this to build our's. I use qiniu to store the files, because it's simple and quick! Or you can use [local/s3/oss/tencentcloud] storage, just modify config.js file, it's simple configure.
- local storage bundle file in local machine
- qiniu storage bundle file in qiniu
- s3 storage bundle file in aws
- oss storage bundle file in aliyun
- tencentcloud storage bundle file in tencentcloud
-QQ Group: 628921445 -QQ Group: 535491067
-Apple App allows hot updates [Apple's developer agreement] (https://developer.apple.com/programs/ios/information/iOS_Program_Information_4_3_15.pdf), in order to not affect the user experience, it is required to use silent updates. Google Play cannot use silent updates. You must pop the box to inform users that the App has an update. The android market in China must adopt a silent update (if the pop-up box prompts, the app will be rejected by "Please upload the latest version of the binary application package"). -react-native Bundle packages are different for different platforms. When using code-push-server, different applications must be created to distinguish them (eg. CodePushDemo-ios and CodePushDemo-android) -react-native-code-push only updates the resource files, not java and Objective C, so when npm upgrades the dependent package version, if the localized implementation used by the dependent package, you must change the application version number (ios modify Info CFBundleShortVersionString in .plist, android modify the versionName in build.gradle), and then recompile the app and publish it to the app store. -It is recommended to use the code-push release-react command to release the application, which combines the package and release commands (eg. Code-push release-react CodePushDemo-ios ios -d Production) -Every time you submit a new version to the App Store, you should also release an initial version to code-push-server based on the submitted version. (Because every time a version is released to code-push-server later, code-puse-server will be compared with the initial version to generate a patch version)
$ code-push login http://api.code-push.com #登录- docker (recommend)
- manual operation
- account:
admin - password:
123456
code-push-server normal solution
- targetBinaryVersion support
*1.2.31.2/1.2.*1.2.3 - 1.2.7>=1.2.3 <1.2.7~1.2.3^1.2.3
use google diff-match-patch calculate text file diff patch
- support iOS and Android
- use
"react-native-code-push": "git+https://[email protected]/lisong/react-native-code-push.git"instead"react-native-code-push": "x.x.x"inpackage.json - change
apps.is_use_diff_textto1in mysql codepush database
MIT License read