Skip to content

Instantly share code, notes, and snippets.

@robertBojor
Created April 7, 2015 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertBojor/3edbea32b55e684fc0eb to your computer and use it in GitHub Desktop.
Save robertBojor/3edbea32b55e684fc0eb to your computer and use it in GitHub Desktop.
Increment build number
#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment