Advertisement
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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement