Skip to content

Instantly share code, notes, and snippets.

@sugumura
Created October 19, 2017 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sugumura/cbd8152e7a4ca0c8b7730a48ce91bffa to your computer and use it in GitHub Desktop.
Save sugumura/cbd8152e7a4ca0c8b7730a48ce91bffa to your computer and use it in GitHub Desktop.
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