Skip to content

Instantly share code, notes, and snippets.

@Abizern
Forked from Machx/gist:336563
Created March 18, 2010 17:27
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 Abizern/336603 to your computer and use it in GitHub Desktop.
Save Abizern/336603 to your computer and use it in GitHub Desktop.
Perl script to inject the git sha into the info.plist
HEAD=`/usr/local/bin/git rev-parse --short HEAD`
defaults write "$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH" CFBundleVersion "$HEAD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment