Skip to content

Commit

Permalink
inspect_app() is the canonical source of bundle identifier.
Browse files Browse the repository at this point in the history
As mentioned in #40.
  • Loading branch information
homebysix committed Oct 5, 2015
1 parent f663695 commit 44ec947
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/recipe-robot
Original file line number Diff line number Diff line change
Expand Up @@ -1499,17 +1499,17 @@ def inspect_app(input_path, args, facts):
robo_print("Actual app filename: %s.app" % app_file, LogLevel.VERBOSE, 4)
facts["app_file"] = app_file

# Determine the bundle identifier of the app.
if "bundle_id" not in facts:
bundle_id = ""
robo_print("Getting bundle identifier...", LogLevel.VERBOSE)
if "CFBundleIdentifier" in info_plist:
bundle_id = info_plist["CFBundleIdentifier"]
else:
robo_print("This app doesn't have a bundle identifier.", LogLevel.WARNING)
if bundle_id != "":
robo_print("Bundle idenfitier is: %s" % bundle_id, LogLevel.VERBOSE, 4)
facts["bundle_id"] = bundle_id
# Determine the bundle identifier of the app. (Overwrites any previous
# bundle_id, because the app itself is the most reliable source.)
bundle_id = ""
robo_print("Getting bundle identifier...", LogLevel.VERBOSE)
if "CFBundleIdentifier" in info_plist:
bundle_id = info_plist["CFBundleIdentifier"]
else:
robo_print("Strange, this app doesn't have a bundle "
"identifier.", LogLevel.ERROR)
robo_print("Bundle idenfitier is: %s" % bundle_id, LogLevel.VERBOSE, 4)
facts["bundle_id"] = bundle_id

# Attempt to determine how to download this app.
if "sparkle_feed" not in facts:
Expand Down

0 comments on commit 44ec947

Please sign in to comment.