Files
wnmj/cocos2d/tools/jenkins-scripts/slave-scripts/templates/linux-build.sh
2026-03-01 13:51:43 +08:00

14 lines
311 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 linux -s $projectname -m release -j4 --compile-script 0