From b3a9b5bee5fa80a74f09da7e699d36ea335ad435 Mon Sep 17 00:00:00 2001 From: Richard Larkin Date: Fri, 27 Sep 2013 14:38:31 +0200 Subject: [PATCH] fix: prevent 'illegal byte code sequence' when parsing png files --- tools/create-xcode-project.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/create-xcode-project.sh b/tools/create-xcode-project.sh index 3350e78..c88626e 100755 --- a/tools/create-xcode-project.sh +++ b/tools/create-xcode-project.sh @@ -32,10 +32,10 @@ try cp $TEMPLATESDIR/template-Info.plist $APPDIR/$APPID-Info.plist try cp -a $TEMPLATESDIR/template.xcodeproj $APPDIR/$APPID.xcodeproj echo "-> Customize templates" -try find $APPDIR -type f -exec sed -i '' "s/##APPID##/$APPID/g" {} \; -try find $APPDIR -type f -exec sed -i '' "s/##APPNAME##/$APPNAME/g" {} \; -try find $APPDIR -type f -exec sed -i '' "s/##SDKVER##/$SDKVER/g" {} \; -try find $APPDIR -type f -exec sed -i '' "s^##SRCDIR##^$SRCDIR^g" {} \; +try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s/##APPID##/$APPID/g" {} \; +try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s/##APPNAME##/$APPNAME/g" {} \; +try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s/##SDKVER##/$SDKVER/g" {} \; +try find $APPDIR -type f -not -iname *.png -exec sed -i '' "s^##SRCDIR##^$SRCDIR^g" {} \; echo "-> Done !"