Skip to content

Commit 924174b

Browse files
committed
added check for _empty_ CFBundleShortVersionString
1 parent eaa7d28 commit 924174b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

quickpkg

+1-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def appNameAndVersion(app_path):
169169
(app_name, app_ext) = os.path.splitext(os.path.basename(app_path))
170170
app_identifier = info_plist.get("CFBundleIdentifier")
171171
app_version = info_plist.get("CFBundleShortVersionString")
172-
if app_version is None:
172+
if app_version is None or app_version == "":
173173
app_version = info_plist.get("CFBundleVersion")
174174
return (app_name, app_identifier, app_version)
175175

@@ -449,7 +449,6 @@ if __name__ == "__main__":
449449
pkgcmd.extend(["--keychain", args.keychain])
450450
if args.cert:
451451
pkgcmd.extend(["--cert", args.cert])
452-
453452
result = cmdexec(pkgcmd)
454453

455454
logger(result["stdout"], 1)

0 commit comments

Comments
 (0)