2015-07-07 13:42:44 +08:00
|
|
|
#!/bin/bash
|
2021-05-18 16:40:30 +08:00
|
|
|
adxe_cmd=tools/console/bin/adxe
|
|
|
|
$adxe_cmd new -l $1
|
2015-07-07 11:02:21 +08:00
|
|
|
|
2015-07-07 13:42:44 +08:00
|
|
|
if [ $1 = "cpp" ];then
|
|
|
|
schemename="MyCppGame-desktop"
|
|
|
|
projectpath="MyCppGame/proj.ios_mac/MyCppGame.xcodeproj"
|
2015-07-08 07:36:26 +08:00
|
|
|
cocos_project_path="MyCppGame"
|
2015-07-07 13:42:44 +08:00
|
|
|
elif [ $1 = "lua" ];then
|
|
|
|
schemename="MyLuaGame-desktop"
|
|
|
|
projectpath="MyLuaGame/frameworks/runtime-src/proj.ios_mac/MyLuaGame.xcodeproj"
|
2015-07-08 07:36:26 +08:00
|
|
|
cocos_project_path="MyLuaGame"
|
2015-07-07 13:42:44 +08:00
|
|
|
elif [ $1 = "js" ];then
|
|
|
|
schemename="MyJSGame-desktop"
|
|
|
|
projectpath="MyJSGame/frameworks/runtime-src/proj.ios_mac/MyJSGame.xcodeproj"
|
2015-07-08 07:36:26 +08:00
|
|
|
cocos_project_path="MyJSGame"
|
2015-07-07 13:42:44 +08:00
|
|
|
fi
|
2015-07-07 11:02:21 +08:00
|
|
|
|
2021-05-18 16:40:30 +08:00
|
|
|
adxe compile -p mac -s $cocos_project_path | xcpretty
|
|
|
|
adxe compile -p mac -s $cocos_project_path
|
2015-07-08 07:36:26 +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
|