lisong / code-push-server

CodePush service is hot update services which adapter react-native-code-push and cordova-plugin-code-push - 热更新
MIT License
1.84k stars 543 forks source link

版本号太大,提交不上去 #281

Open cq0702 opened 4 years ago

cq0702 commented 4 years ago

当我app端提交的版本号太大的时候:10036.0.0,最后一步提交上去的时候会报错 Releasing update contents to CodePush:

Upload progress:[==================================================] 100% 0.0s [Error] targetBinaryVersion 10036.0.0 not support. 请问这个是在哪里设置版本支持大小吗?怎么解决呢,谢谢

yz1311 commented 4 years ago

https://github.com/lisong/code-push-server/blob/aa647a509c5c7e1162c121ec9b597728e841a8cb/core/utils/common.js#L44

根据源码查看,x.y.z这种的,x只支持最多三位,你的5位超了,x本来就表示大版本,你这样使用不规范

cq0702 commented 4 years ago

好的,谢谢