mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 11:48:29 +00:00
22 lines
605 B
Bash
Executable File
22 lines
605 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
COCOS2DX_ROOT="$DIR"/../..
|
|
|
|
if [ -z "$NDK_ROOT" ]; then
|
|
export NDK_ROOT=$HOME/bin/android-ndk
|
|
fi
|
|
|
|
# to fix git error: shallow update not allowed
|
|
# https://stackoverflow.com/questions/28983842/remote-rejected-shallow-update-not-allowed-after-changing-git-remote-url
|
|
#git remote add old https://github.com/cocos-creator/cocos2d-x-lite
|
|
#git fetch --unshallow old
|
|
|
|
cd $COCOS2DX_ROOT/tools/travis-scripts
|
|
./generate-bindings.sh $TRAVIS_BRANCH
|
|
|
|
cd $COCOS2DX_ROOT/tools/travis-scripts
|
|
./generate-cocosfiles.sh $TRAVIS_BRANCH
|
|
exit 0
|