Skip to content

Commit

Permalink
Merge pull request #7 from rollbar/upload-script-update
Browse files Browse the repository at this point in the history
Use INFOPLIST_PATH rather than PRODUCT_SETTINGS_PATH
  • Loading branch information
brianr committed Jan 16, 2015
2 parents 762ad64 + 4c26f4c commit 5df9137
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ with zipfile.ZipFile(zip_location, 'w') as zipf:
for f in files:
zipf.write(os.path.join(root, f))

p = subprocess.Popen('/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" -c "Print :CFBundleIdentifier" "%s"' % os.environ['PRODUCT_SETTINGS_PATH'],
info_file_path = os.path.join(os.environ['INSTALL_DIR'], os.environ['INFOPLIST_PATH'])
p = subprocess.Popen('/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" -c "Print :CFBundleIdentifier" "%s"' % info_file_path,
stdout=subprocess.PIPE, shell=True)

stdout, stderr = p.communicate()
version, identifier = stdout.split()

Expand Down

0 comments on commit 5df9137

Please sign in to comment.