MCPcopy
hub / github.com/lisong/code-push-server

github.com/lisong/code-push-server @v5.7.1 sqlite

repository ↗ · DeepWiki ↗ · release v5.7.1 ↗
111 symbols 250 edges 52 files 0 documented · 0%
README

CodePush Server source

NPM

NPM Version Node.js Version Linux Status Windows Status Coverage Status Dependency Status Known Vulnerabilities Licenses

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.

Support Storage mode

  • 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交流群

  • QQ群: 628921445
  • QQ群: 535491067

正确使用code-push热更新

  • 苹果App允许使用热更新Apple's developer agreement, 为了不影响用户体验,规定必须使用静默更新。 Google Play不能使用静默更新,必须弹框告知用户App有更新。中国的android市场必须采用静默更新(如果弹框提示,App会被“请上传最新版本的二进制应用包”原因驳回)。
  • react-native 不同平台bundle包不一样,在使用code-push-server的时候必须创建不同的应用来区分(eg. CodePushDemo-ios 和 CodePushDemo-android)
  • react-native-code-push只更新资源文件,不会更新java和Objective C,所以npm升级依赖包版本的时候,如果依赖包使用的本地化实现, 这时候必须更改应用版本号(ios修改Info.plist中的CFBundleShortVersionString, android修改build.gradle中的versionName), 然后重新编译app发布到应用商店。
  • 推荐使用code-push release-react 命令发布应用,该命令合并了打包和发布命令(eg. code-push release-react CodePushDemo-ios ios -d Production)
  • 每次向App Store提交新的版本时,也应该基于该提交版本同时向code-push-server发布一个初始版本。(因为后面每次向code-push-server发布版本时,code-puse-server都会和初始版本比较,生成补丁版本)

shell login

$ code-push login http://api.code-push.com #登录

web

访问:http://www.code-push.com

client eg.

ReactNative CodePushDemo

Cordova CodePushDemo

HOW TO INSTALL code-push-server

DEFAULT ACCOUNT AND PASSWORD

  • account: admin
  • password: 123456

HOW TO USE

ISSUES

code-push-server normal solution

An unknown error occurred

modify password

UPDATE TIME LINE

  • targetBinaryVersion support
  • *
  • 1.2.3
  • 1.2/1.2.*
  • 1.2.3 - 1.2.7
  • >=1.2.3 <1.2.7
  • ~1.2.3
  • ^1.2.3

Advance Feature

use google diff-match-patch calculate text file diff patch

  • support iOS and Android
  • use "react-native-code-push": "git+https://git@github.com/lisong/react-native-code-push.git" instead "react-native-code-push": "x.x.x" in package.json
  • change apps.is_use_diff_text to 1 in mysql codepush database

License

MIT License read

Core symbols most depended-on inside this repo

define
called by 25
core/const.js
sha1
called by 3
core/utils/qetag.js
calcEtag
called by 2
core/utils/qetag.js
checkAuthToken
called by 1
core/middleware.js
checkAccessToken
called by 1
core/middleware.js
AppError
called by 0
core/app-error.js
NotFoundError
called by 0
core/app-error.js
UnauthorizedError
called by 0
core/app-error.js

Shape

Function 111

Languages

TypeScript100%

Modules by API surface

public/js/jquery-3.1.1.min.js85 symbols
public/js/bootstrap-3.3.7/js/bootstrap.min.js8 symbols
core/utils/qetag.js3 symbols
core/app-error.js3 symbols
core/middleware.js2 symbols
routes/apps.js1 symbols
core/services/package-manager.js1 symbols
core/services/email-manager.js1 symbols
core/services/deployments.js1 symbols
core/services/datacenter-manager.js1 symbols
core/services/collaborators.js1 symbols
core/services/client-manager.js1 symbols

Dependencies from manifests, versioned

aliyun-oss-upload-stream1.3.0 · 1×
aliyun-sdk1.11.10 · 1×
aws-sdk2.7.0 · 1×
bcryptjs2.3.0 · 1×
bluebird3.4.1 · 1×
body-parser1.15.2 · 1×
cookie-parser1.4.3 · 1×
cos-nodejs-sdk-v52.4.10 · 1×
debug3.1.0 · 1×
diff-match-patch1.0.1 · 1×
express4.14.0 · 1×
extract-zip1.6.0 · 1×

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add code-push-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact