Skip to content

Instantly share code, notes, and snippets.

@stleamist
Created May 17, 2021 12:02
Show Gist options
  • Save stleamist/e2cf8ab894d4b38f11fde3ddfc6a20e5 to your computer and use it in GitHub Desktop.
Save stleamist/e2cf8ab894d4b38f11fde3ddfc6a20e5 to your computer and use it in GitHub Desktop.
#!/bin/sh
PRODUCT_BUNDLE_VERSION=$(date "+%Y%m%d%H%M")
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${PRODUCT_BUNDLE_VERSION}" "${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${PRODUCT_BUNDLE_VERSION}" "${PROJECT_DIR}/${INFOPLIST_FILE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment