Created
February 4, 2025 03:57
-
-
Save Drzaln/2a81ff6f67b9d9b07868c42e3a1509a3 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| PROJECT_DIR="PROJECT_NAME" | |
| INFOPLIST_FILE="Info.plist" | |
| INFOPLIST_DIR="${PROJECT_DIR}/${INFOPLIST_FILE}" | |
| PACKAGE_VERSION=$(cat ../package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') | |
| # Update plist with new values | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${PACKAGE_VERSION#*v}" "${INFOPLIST_DIR}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment