Created
February 23, 2011 21:55
-
-
Save tjhanley/841273 to your computer and use it in GitHub Desktop.
command line utility to write the version number and the git commit hash to your projects Bundle Version Id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# place this in your path somewhere | |
# usage xcodeversionr.sh 1.0.1 MyProject-Info.plist | |
echo "Version: $1" | |
echo "File: $2" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $1 (build `git rev-parse --short HEAD`)" $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
next version will have the version number auto-increment