Skip to content

Instantly share code, notes, and snippets.

@itsthejb
Created November 7, 2015 18:58

Revisions

  1. Jonathan Crooke revised this gist Nov 7, 2015. No changes.
  2. Jonathan Crooke created this gist Nov 7, 2015.
    4 changes: 4 additions & 0 deletions buildCommits.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    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"