[UE4] 如何測試marketplace plugin的打包流程

posted in: UnrealEngine | 0

主要是靠RunUAT.bat中的BuildPlugin指令,如下:

用法,把所有的.uplugin檔案找出來餵進去:


#export PLUGIN_BUILD_TARGET="Android+HTML5+IOS+Mac+TVOS+Win32+Win64"
export PLUGIN_BUILD_TARGET="Win32+Win64"
export PLUGIN_PACKAGE_ARCHIVE_DIR="/your/plugin/temp/path/"
for f in $( find . -type f -name '*.uplugin'); do
export PLUGIN_FILE="${PROJECT_ROOT}/${f}"
UEBuildPlugin
done

要注意IOS、Mac跟TVOS要在MacOS系統上做建置

相關引擎中souce code在這裡:

Engine\Source\Programs\AutomationTool\Scripts\BuildPluginCommand.Automation.cs

我目前是把這段code整合進vsts中的CI建置流程中。

 

Leave a Reply

Your email address will not be published. Required fields are marked *