mirror of https://github.com/axmolengine/axmol.git
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:
commit
b40102b77e
|
@ -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"
|
||||
|
|
|
@ -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 $* \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 $* \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 $*
|
||||
|
|
Loading…
Reference in New Issue