From 6d358cfad7de078d40d772212829dd3205ef20f3 Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 29 Sep 2011 02:14:17 -0700 Subject: [PATCH] make linux template work ok --- template/linux/mycopy_files.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/template/linux/mycopy_files.sh b/template/linux/mycopy_files.sh index 84cc4c7fca..06c553cb0b 100755 --- a/template/linux/mycopy_files.sh +++ b/template/linux/mycopy_files.sh @@ -58,8 +58,7 @@ move_eclipse_configures_into(){ sed -i "s/HelloWorld/$projName/" $APP_DIR/Linux/.project - sed -i "s:../../../:$COCOS2DX_ROOT:;s:helloworld:$projName:" $APP_DIR/Linux/.cproject - #sed -i "s/helloworld/$projName/" $APP_DIR/Linux/.cproject + sed -i "s:\.\./\.\./\.\./:$COCOS2DX_ROOT:;s:helloworld:$projName:" $APP_DIR/Linux/.cproject } #copy main sources @@ -71,6 +70,9 @@ copy_cpp_h_from_helloworld(){ cp $file $APP_DIR/Classes fi done + + # load resources from Resources, not Resource + sed -i "s:\.\./Resource/:\.\./Resources/:" $APP_DIR/Classes/AppDelegate.cpp } # copy resources