axmol/tools/jenkins-scripts/slave-scripts/runtime/ios-build.sh

26 lines
1.1 KiB
Bash
Raw Normal View History

2019-11-23 20:27:39 +08:00
#!/bin/bash
2021-05-18 16:40:30 +08:00
adxe_cmd=tools/console/bin/adxe
$adxe_cmd new -l $1 -t runtime
2019-11-23 20:27:39 +08:00
if [ $1 = "cpp" ];then
schemename="MyCppGame-mobile"
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
2021-05-18 16:40:30 +08:00
adxe_project_path="MyCppGame"
2019-11-23 20:27:39 +08:00
elif [ $1 = "lua" ];then
schemename="MyLuaGame-mobile"
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
2021-05-18 16:40:30 +08:00
adxe_project_path="MyLuaGame"
2019-11-23 20:27:39 +08:00
elif [ $1 = "js" ];then
schemename="MyJSGame-mobile"
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
2021-05-18 16:40:30 +08:00
adxe_project_path="MyJSGame"
2019-11-23 20:27:39 +08:00
fi
echo "start building..."
2021-05-18 16:40:30 +08:00
adxe compile -p ios -s $adxe_project_path | xcpretty
adxe compile -p ios -s $adxe_project_path
2019-11-23 20:27:39 +08:00
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" clean | xcpretty
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build | xcpretty
# #the following commands must not be removed
# xcodebuild -project $projectpath -target "${schemename}" -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" build