Created
October 7, 2019 11:19
-
-
Save SergLam/40299ffa456f0b8cab22470df1099735 to your computer and use it in GitHub Desktop.
AppVersion Launch screen
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
# Output version & build number to the APP_VERSION label on LaunchScreen.storyboard | |
versionNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFOPLIST_FILE}") | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}") | |
sed -i "" -e "/userLabel=\"APP_VERSION\"/s/text=\"[^\"]*\"/text=\"Version: $versionNumber ($buildNumber)\"/" "$PROJECT_DIR/LaunchScreen.storyboard" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment