Jenkins Unity命令行打包,支持动态添加自定义宏

#!/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}

你可能感兴趣的:(Jenkins Unity命令行打包,支持动态添加自定义宏)