Created
May 25, 2012 04:42
-
-
Save hSATAC/2785809 to your computer and use it in GitHub Desktop.
set git rev as xcode bundle version
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 ruby | |
| plist = "/Users/cat/projects/proj/proj-Info.plist" | |
| version = `git rev-parse --short HEAD` | |
| `/usr/libexec/Plistbuddy -c "Set CFBundleVersion #{version}" #{plist}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment