Index: packager.py |
diff --git a/packager.py b/packager.py |
index 06ea732acb71191ef28a0ac2ac27220d56e7d85b..ab9557148de8834951ea1ea93e83c55a0be18cf9 100644 |
--- a/packager.py |
+++ b/packager.py |
@@ -42,6 +42,14 @@ def get_extension(platform, has_key_file=False): |
return extension |
+def get_app_id(release_build, metadata): |
+ """Lookup the correct app_id for a build.""" |
+ suffix = 'release' if release_build else 'devbuild' |
+ app_id_option = 'app_id_' + suffix |
+ |
+ return metadata.get('general', app_id_option) |
+ |
+ |
def getMetadataPath(baseDir, type): |
return os.path.join(baseDir, 'metadata.%s' % type) |