mirror of https://github.com/axmolengine/axmol.git
This commit is contained in:
commit
0551e86d80
|
@ -19,7 +19,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# the bash file should not be called by cygwin
|
# the bash file should not be called by cygwin
|
||||||
UNIX_NAME=`uname -o`
|
UNIX_NAME=`uname -s`
|
||||||
if [ $UNIX_NAME = "Cygwin" ];then
|
if [ $UNIX_NAME = "Cygwin" ];then
|
||||||
echo "Error!!!"
|
echo "Error!!!"
|
||||||
echo "Don't run in cygwin. You should run corresponding bat."
|
echo "Don't run in cygwin. You should run corresponding bat."
|
||||||
|
|
|
@ -65,6 +65,7 @@ copy_src_and_jni(){
|
||||||
copy_build_native(){
|
copy_build_native(){
|
||||||
# here should use # instead of /, why??
|
# here should use # instead of /, why??
|
||||||
sed "s#__cocos2dxroot__#$COCOS2DX_ROOT#;s#__ndkroot__#$NDK_ROOT#;s#__projectname__#$APP_NAME#" $COCOS2DX_ROOT/template/android/build_native.sh > $APP_DIR/android/build_native.sh
|
sed "s#__cocos2dxroot__#$COCOS2DX_ROOT#;s#__ndkroot__#$NDK_ROOT#;s#__projectname__#$APP_NAME#" $COCOS2DX_ROOT/template/android/build_native.sh > $APP_DIR/android/build_native.sh
|
||||||
|
chmod u+x $APP_DIR/android/build_native.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
# replace AndroidManifext.xml and change the activity name
|
# replace AndroidManifext.xml and change the activity name
|
||||||
|
|
Loading…
Reference in New Issue