Files
wnmj-normal/cocos2d/tools/jenkins-scripts/slave-scripts/templates/android-build.sh
2026-03-03 13:56:44 +08:00

13 lines
334 B
Bash

#!/bin/bash
mycocos=tools/cocos2d-console/bin/cocos
$mycocos new -l $1
if [ $1 = "cpp" ];then
projectname="MyCppGame"
elif [ $1 = "lua" ];then
projectname="MyLuaGame"
elif [ $1 = "js" ];then
projectname="MyJSGame"
fi
$mycocos compile -p android -s $projectname --android-studio -j4 --ndk-mode release --compile-script 0