fix: duplicated version and shortVersionString in sparkle

This commit is contained in:
Guizai 2020-05-05 16:37:02 +08:00
parent f0869aa1c1
commit e7634a625c

View File

@ -25,7 +25,7 @@ async def get_version(name, conf, **kwargs):
if version_string:
version.append(version_string)
if build_number:
if build_number and (build_number not in version):
version.append(build_number)
return '-'.join(version) if version else None