axmol/tools/jenkins-scripts/slave-scripts/templates/linux-build.sh

10 lines
364 B
Bash
Raw Normal View History

2015-07-07 11:21:32 +08:00
mycocos=tools/cocos2d-console/bin/cocos
$mycocos new -l $1
if [ $1 = "cpp" ];then
$mycocos compile -p linux -s MyCppGame -m release -j4 --compile-script 0
elif [ $1 = "lua" ];then
$mycocos compile -p linux -s MyLuaGame -m release -j4 --compile-script 0
elif [ $1 = "js" ];then
$mycocos compile -p linux -s MyJSGame -m release -j4 --compile-script 0
2015-07-07 11:02:21 +08:00
fi