Skip to content

Commit

Permalink
added check for _empty_ CFBundleShortVersionString
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptingosx committed Mar 21, 2022
1 parent eaa7d28 commit 924174b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quickpkg
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def appNameAndVersion(app_path):
(app_name, app_ext) = os.path.splitext(os.path.basename(app_path))
app_identifier = info_plist.get("CFBundleIdentifier")
app_version = info_plist.get("CFBundleShortVersionString")
if app_version is None:
if app_version is None or app_version == "":
app_version = info_plist.get("CFBundleVersion")
return (app_name, app_identifier, app_version)

Expand Down Expand Up @@ -449,7 +449,6 @@ if __name__ == "__main__":
pkgcmd.extend(["--keychain", args.keychain])
if args.cert:
pkgcmd.extend(["--cert", args.cert])

result = cmdexec(pkgcmd)

logger(result["stdout"], 1)
Expand Down

0 comments on commit 924174b

Please sign in to comment.