Created
October 19, 2017 16:01
-
-
Save sugumura/cbd8152e7a4ca0c8b7730a48ce91bffa to your computer and use it in GitHub Desktop.
for cordova hook scripts
This file contains 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 | |
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