Jenkins Unity命令行打包,支持动态添加自定义宏
2017-04-06 本文已影响315人
2b75747cf703
#!/bin/sh
if [[ "$defineSymbols" != "" || "$addSymbols" != "" || "$removeSymbols" != "" ]]; then
log="${WORKSPACE}/../builds/${BUILD_NUMBER}/unity3d_defineSymbols.log"
touch ${log}
tail -f ${log} &
/Applications/Unity\ ${unityVersion}/Unity.app/Contents/MacOS/Unity -quit -batchmode -projectPath "${WORKSPACE}" \
-logFile ${log} -buildTarget ${platform} -executeMethod JenkinsBuilder.PerformBuild -silent-crashes \
defineSymbols="${defineSymbols}" addSymbols="${addSymbols}" removeSymbols="${removeSymbols}"
fi
log="${WORKSPACE}/../builds/${BUILD_NUMBER}/unity3d_builder.log"
touch ${log}
tail -f ${log} &
/Applications/Unity\ ${unityVersion}/Unity.app/Contents/MacOS/Unity -quit -batchmode -projectPath "${WORKSPACE}" \
-logFile ${log} -buildTarget ${platform} -executeMethod JenkinsBuilder.PerformBuild -silent-crashes \
buildPath="${WORKSPACE}/../builds/${BUILD_NUMBER}" firstPublish=${firstPublish} \
channel=${channel} version=${version} hasAD=${hasAD} development=${development} \
mobileprovision=${mobileprovision} isArabicApp=${isArabicApp} scenes=${scenes} bundleIdentifier=${bundleIdentifier} \
useAAR=${useAAR} xcodeVersion=${xcodeVersion} clearProject=${clearProject} buildChannelsFast=${buildChannelsFast}