1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Use CFBundleShortVersionString for version code

This commit is contained in:
Jochen Sprickerhof 2022-12-09 16:04:51 +01:00 committed by Hans-Christoph Steiner
parent a987341c37
commit dfbb2df839

View File

@ -557,8 +557,8 @@ def process_ipa(repodir, apks):
if re.match("Payload/[^/]*.app/Info.plist", info.filename): if re.match("Payload/[^/]*.app/Info.plist", info.filename):
with ipa_zip.open(info) as plist_file: with ipa_zip.open(info) as plist_file:
plist = readPlist(plist_file) plist = readPlist(plist_file)
# https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion # https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring
version = plist["CFBundleVersion"].split('.') version = plist["CFBundleShortVersionString"].split('.')
major = int(version.pop(0)) major = int(version.pop(0))
minor = int(version.pop(0)) if version else 0 minor = int(version.pop(0)) if version else 0
patch = int(version.pop(0)) if version else 0 patch = int(version.pop(0)) if version else 0