A tool for easy automating and customizing build process for Unity.
A tool for easy automating and customizing build process for Unity.
A tool for easy automating and customizing build process for Unity.
/build directory or file./AssetBundles directoryCoffee > Project BuilderBuid button to build application./build directory or file.The ProjectBuilder is accessible from the command line.
It is useful when using CI tools such as Jenkins.
The following command option executes the build with the specified builder.-batchmode -buildTarget -executeMethod Mobcast.Coffee.Build.ProjectBuilder.Build -builder [-devBuildNumber ] [-appendSymbols 'INCLUDE_SYMBOL;!EXCLUDE_SYMBOL;...'] [-override ]
For example, The following command option executes the build for iOS with 'Develop_iOS' builder asset, with DEBUG_MODE symbol.-batchmode -buildTarget ios -executeMethod Mobcast.Coffee.Build.ProjectBuilder.Build -builder 'Default iOS' -appendSymbols DEBUG_MODE
Note: DO NOT USE -quit option.
For other infomation, see this link :
-override to override builder setting. For example as following.
-override "{ \"applicationIdentifier\":\"com.test.app\", \"version\":\"1.1.0\", \"defineSymbols\":\"!DEVELOPMENT_BUILD;FAKE_PURCHASE\" }"Convert to JSON (console log) in project builder window.Mobcast.Coffee.Build.ProjectBuilder.PreExport at Config > Advanced Settings > Pre-Export Method Name on UCB.Create Custom Project Builder Script[SerializeField] string stringParameter;
[PostProcessBuild]
protected static void OnPostProcessBuild(BuildTarget target, string path)
{
CustomProjectBuilder current = Util.currentBuilder as CustomProjectBuilder;
Debug.Log(current.stringParameter);
...
}IBuildTargetSettings interface as following for build targets you need.System.Serializable attribute to the class to be serializable.[System.Serializable]
public class BuildTargetSettings_WebGL : IBuildTargetSettings
{
public BuildTarget buildTarget{get{ return BuildTarget.WebGL;}}
public Texture icon{get{ return EditorGUIUtility.FindTexture("BuildSettings.WebGL.Small");}}
public void Reset(){}
public void ApplySettings(ProjectBuilder builder){}
public void DrawSetting(SerializedObject serializedObject){}
}ProjectBuilder or Custom ProjectBuilder as following.public BuildTargetSettings_WebGL webGlSettings = new BuildTargetSettings_WebGL();Enable/Disable scenes in build is not reflected.IPlatformSettings to IBuildTargetSettings./AssetBundles directory.IPlatformSettings interface.BUILD_VERSION for CI.No open issues yet, or sync has not completed.