Created
July 17, 2018 08:26
-
-
Save MaciejGad/043e08b387b30478a0f52704d0e901d3 to your computer and use it in GitHub Desktop.
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/bash | |
info="Info.plist" | |
plistBuddy=/usr/libexec/PlistBuddy | |
version=`$plistBuddy -c "print CFBundleVersion" "$info"` | |
echo "Current version: $version" | |
((version++)) | |
echo "New version: $version" | |
$plistBuddy -c "set CFBundleVersion $version" "$info" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment