Created
April 22, 2014 13:40
-
-
Save xdream86/11179688 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
if gem list CFPropertyList -i; then | |
ruby InteriorDecorationAssistant/Settings/acknowledgementGenerator.rb "InteriorDecorationAssistant/Settings/Settings.bundle" "InteriorDecorationAssistant/Settings/licenses" | |
fi | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE" | |
productVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$INFOPLIST_FILE") | |
/usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:2:DefaultValue $buildNumber" InteriorDecorationAssistant/Settings/Settings.bundle/Root.plist | |
/usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:1:DefaultValue $productVersion" InteriorDecorationAssistant/Settings/Settings.bundle/Root.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment