Created
November 7, 2015 18:58
-
-
Save itsthejb/cc7f3b594dd5ad77c75c to your computer and use it in GitHub Desktop.
Set bundle build number from count of Git commits + offset
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
PLIST=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Info.plist | |
OFFSET=300 | |
COUNT=$(expr $(git rev-list HEAD --count) + $OFFSET) | |
/usr/libexec/PlistBuddy -c "Set CFBundleVersion $COUNT" "$PLIST" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment