mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-11-03 15:02:21 +08:00
有个地方有个小问题
This commit is contained in:
parent
caa08cfa8d
commit
4f08e44ca3
@ -1,5 +1,5 @@
|
||||
{
|
||||
"Version": "4.0.0",
|
||||
"Version": "4.0.0.1",
|
||||
"Time": "未知",
|
||||
"Thank": [
|
||||
"感谢 @り哥拽的冇气质° 和 @杨 提供了 3a5000(新世界的测试机器)",
|
||||
|
||||
@ -272,13 +272,15 @@ class GetInfo():
|
||||
if (self.compareVersion(newestVersion, i) == -1):
|
||||
newestVersion = i
|
||||
version = newestVersion
|
||||
self.glibcVersion = version
|
||||
if (version == None):
|
||||
version = "2.28" # 默认值
|
||||
self.glibcVersion = version
|
||||
return version
|
||||
|
||||
def compareVersion(self, version1: str, version2: str):
|
||||
# 判断是不是版本号
|
||||
if (type(version1) != str or type(version2) != str):
|
||||
return -2
|
||||
if ((not "." in version1) or (not "." in version2)):
|
||||
return -2
|
||||
if (version1 == version2):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user