Merge pull request #1060 from dumganhar/gles20

fixed #1365: Some files of Resources folder which is copied by build_native.sh will lost authority in cygwin.
This commit is contained in:
James Chen 2012-06-25 21:55:15 -07:00
commit b40102b77e
6 changed files with 18 additions and 0 deletions

View File

@ -62,6 +62,9 @@ cp $file $GAME_ANDROID_ROOT/assets
fi
done
# Change the authority of Resources folder.
chmod -R 666 $GAME_ANDROID_ROOT/assets
# build
if [[ $buildexternalsfromsource ]]; then
echo "Building external dependencies from source"

View File

@ -60,6 +60,9 @@ cp $file $HELLOWORLD_ROOT/assets
fi
done
# Change the authority of Resources folder.
chmod -R 666 $HELLOWORLD_ROOT/assets
if [[ $buildexternalsfromsource ]]; then
echo "Building external dependencies from source"
$NDK_ROOT_LOCAL/ndk-build -C $HELLOWORLD_ROOT $* \

View File

@ -50,6 +50,9 @@ do
fi
done
# Change the authority of Resources folder.
chmod -R 666 $GAME_ANDROID_ROOT/assets
# copy icons (if they exist)
file=$GAME_ANDROID_ROOT/assets/Icon-72.png
if [ -f "$file" ]; then

View File

@ -60,6 +60,9 @@ cp "$file" $TEST_JS_ROOT/assets
fi
done
# Change the authority of Resources folder.
chmod -R 666 $TEST_JS_ROOT/assets
if [[ $buildexternalsfromsource ]]; then
echo "Building external dependencies from source"
$NDK_ROOT_LOCAL/ndk-build -C $TEST_JS_ROOT $* \

View File

@ -61,6 +61,9 @@ cp $file $TESTS_ROOT/assets
fi
done
# Change the authority of Resources folder.
chmod -R 666 $TESTS_ROOT/assets
# remove test_image_rgba4444.pvr.gz
rm -f $TESTS_ROOT/assets/Images/test_image_rgba4444.pvr.gz

View File

@ -25,6 +25,9 @@ do
fi
done
# Change the authority of Resources folder.
chmod -R 666 $GAME_ANDROID_ROOT/assets
# build
pushd $ANDROID_NDK_ROOT
./ndk-build -C $GAME_ANDROID_ROOT $*