Skip to content

Instantly share code, notes, and snippets.

@syuhari
Created March 22, 2014 22:16
Show Gist options
  • Save syuhari/9715275 to your computer and use it in GitHub Desktop.
Save syuhari/9715275 to your computer and use it in GitHub Desktop.
Run cocos command in post action on Xcode
export ANT_ROOT=/usr/local/bin
export NDK_ROOT=/path/to/android-ndk
export ANDROID_SDK_ROOT=/path/to/android-sdk
export COCOS_CONSOLE_ROOT=/path/to/cocos2d-x/tools/cocos2d-console/bin
$COCOS_CONSOLE_ROOT/cocos run -s $SRCROOT/../ -p android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment