mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -60,7 +60,7 @@ object AppUpdateGitHub : AppUpdate.AppUpdateInterface {
|
||||
val path = "\$.assets[?(@.name =~ /legado_${appCtx.channel}_.*?apk\$/)]"
|
||||
val name = rootDoc.readString("$.name")
|
||||
?: throw NoStackTraceException("获取新版本出错")
|
||||
val tagName = name.replace("legado_${appCtx.channel}_", "")
|
||||
val tagName = name.replace("legado_app_", "")
|
||||
if (tagName > AppConst.appInfo.versionName) {
|
||||
val assetsMap = rootDoc.read<List<Any>>(path)
|
||||
.firstOrNull()
|
||||
|
||||
Reference in New Issue
Block a user