Created
July 10, 2012 17:50
-
-
Save birarda/3085075 to your computer and use it in GitHub Desktop.
XCode run script for build number as git commit SHA
This file contains 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
#!/bin/sh | |
buildNumber=`/usr/bin/git rev-parse --short HEAD` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$PROJECT_NAME"/"$PROJECT_NAME"-Info.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment