build 322 B

123456789101112
  1. #!/bin/sh
  2. if [ ! -d "cocos2d" ]; then
  3. wget http://cdn.cocos2d-x.org/cocos2d-x-3.15.1.zip
  4. unzip cocos2d-x-3.15.1.zip
  5. mv cocos2d-x-3.15.1 cocos2d
  6. rm cocos2d-x-3.15.1.zip
  7. fi
  8. ./cocos2d/tools/cocos2d-console/bin/cocos compile -p android --android-studio
  9. cp ./bin/debug/android/RedCore-debug.apk ./RedCore.apk