Merge pull request #127 from guizai/add-sparkle-source

Fix duplicated version and shortVersionString in sparkle
This commit is contained in:
依云 2020-05-05 17:29:40 +08:00 committed by GitHub
commit 3dfbca494c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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