Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- INFOPLIST="${SRCROOT}/MyApp/MyApp-Info.plist"
- INFOPLIST_WKAPP="${SRCROOT}/MyApp-WKApp/Info.plist"
- INFOPLIST_WKEXT="${SRCROOT}/MyApp-WKExt/Info.plist"
- PLISTCMD="Set :CFBundleVersion $(git rev-list --all|wc -l)"
- echo -n "$INFOPLIST"
- | xargs -0 /usr/libexec/PlistBuddy -c "$PLISTCMD"
- echo -n "$INFOPLIST_WKAPP"
- | xargs -0 /usr/libexec/PlistBuddy -c "$PLISTCMD"
- echo -n "$INFOPLIST_WKEXT"
- | xargs -0 /usr/libexec/PlistBuddy -c "$PLISTCMD"
- #!/bin/sh
- INFOPLIST="${SRCROOT}/MyApp/MyApp-Info.plist"
- INFOPLIST_WKAPP="${SRCROOT}/MyApp-WKApp/Info.plist"
- INFOPLIST_WKEXT="${SRCROOT}/MyApp-WKExt/Info.plist"
- PLISTCMD="Set :CFBundleVersion SCRIPTED"
- echo -n "$INFOPLIST"
- | xargs -0 /usr/libexec/PlistBuddy -c "$PLISTCMD"
- echo -n "$INFOPLIST_WKAPP"
- | xargs -0 /usr/libexec/PlistBuddy -c "$PLISTCMD"
- echo -n "$INFOPLIST_WKEXT"
- | xargs -0 /usr/libexec/PlistBuddy -c "$PLISTCMD"
- INFOPLIST_MYAPP="${SRCROOT}/MyApp/MyApp-Info.plist"
- myAppVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$INFOPLIST_MYAPP")
- myAppBuild=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_MYAPP")
- INFOPLIST_SHAREEXT="${SRCROOT}/ShareExtension/Info.plist"
- /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $myAppVersion" "$INFOPLIST_SHAREEXT"
- /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $myAppBuild" "$INFOPLIST_SHAREEXT"
Add Comment
Please, Sign In to add comment