Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for cordova hook scripts
#!/bin/bash
PLIST=platforms/ios/*/*-Info.plist
echo 'exec overwrite_plist.sh'
cat << EOF |
Delete :CFBundleDevelopmentRegion
Add :CFBundleDevelopmentRegion array
Add :CFBundleDevelopmentRegion:0 string "Japanese"
Delete :CFBundleLocalizations
Add :CFBundleLocalizations array
Add :CFBundleLocalizations:0 string "ja"
EOF
while read line
do
/usr/libexec/PlistBuddy -c "$line" $PLIST
done
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.