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

14 lines
311 B
Bash
Raw Normal View History

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