Skip to content

Commit

Permalink
updated dsym upload script to include bundle identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
sbezboro committed Apr 16, 2014
1 parent d829861 commit 3407b89
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ To automatically send .dSYM files to Rollbar whenever your app is built in relea
for f in files:
zipf.write(os.path.join(root, f))

p = subprocess.Popen('/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" "%s"' % os.environ['PRODUCT_SETTINGS_PATH'],
p = subprocess.Popen('/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" -c "Print :CFBundleIdentifier" "%s"' % os.environ['PRODUCT_SETTINGS_PATH'],
stdout=subprocess.PIPE, shell=True)
stdout, stderr = p.communicate()
version = stdout.strip()
version, identifier = stdout.split()

p = subprocess.Popen('curl -X POST https://api.rollbar.com/api/1/dsym -F access_token=%s -F version=%s -F dsym=@"%s"' % (ACCESS_TOKEN, version, zip_location), shell=True)
p = subprocess.Popen('curl -X POST https://api.rollbar.com/api/1/dsym -F access_token=%s -F version=%s -F bundle_identifier="%s" -F dsym=@"%s"'
% (ACCESS_TOKEN, version, identifier, zip_location), shell=True)
p.communicate()
```

Expand Down

0 comments on commit 3407b89

Please sign in to comment.