Giter Site home page Giter Site logo

版本判断问题 about code-push-cli HOT 3 CLOSED

shm-open avatar shm-open commented on July 22, 2024
版本判断问题

from code-push-cli.

Comments (3)

rocwind avatar rocwind commented on July 22, 2024 2

@fundon
抱歉回复晚了.
targetBinaryVersion 的具体处理其实是在服务端的, 所以如果遇上问题的话, 可能需要看看code-push-server的逻辑.
服务端的逻辑主要在 https://github.com/shm-open/code-push-server/blob/master/src/core/utils/common.ts#L29, 会把具体的min/max version范围解析出来. 我尝试了一下, ~1.0.0 会拆成 min_version: 1000000000000000, max_version: 1000010000000000, 看起来是正常的.
而我们最近的版本里修过这样一个问题有可能会有关: lisong/code-push-server#173, 对应的fix: shm-open/code-push-server#162, 已经发布过, 可以试试更新到最新版本看看.
如果问题依然存在, 希望能提供更多的一些信息方便复现/调试:

  • 使用的server/cli版本
  • 发布时的具体命令行

from code-push-cli.

fundon avatar fundon commented on July 22, 2024

好的 我再尝试下

from code-push-cli.

18706789739 avatar 18706789739 commented on July 22, 2024

我的app版本号目前是10.1.7

发布10.1.1 - 10.1.999 可以接收到。
再发布 10.1.7 之后也可以接收到。

但在单独发布10.1.7之后,应用无法接受到10.1.1 - 10.1.999 范围发布的最新包

server 2.1.6 / cli 2.1.9

code-push release-react xxx android --t "10.1.1 - 10.1.999" --d Production --des "" -m true
code-push release-react xxx android --t "10.1.7" --d Production --des "" -m true

from code-push-cli.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.