make linux template work ok

This commit is contained in:
minggo 2011-09-29 02:14:17 -07:00
parent 333e08330b
commit 6d358cfad7
1 changed files with 4 additions and 2 deletions

View File

@ -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