/// <summary> /// Build the Lumin Player. /// </summary> /// <param name="buildInfo"></param> public static BuildReport BuildPlayer(BuildInfo buildInfo) { if (!Application.isBatchMode) { buildInfo.PostBuildAction += PostBuildAction; } return(UnityPlayerBuildTools.BuildUnityPlayer(buildInfo)); }
/// <summary> /// Build the Uwp Player. /// </summary> /// <param name="buildInfo"></param> /// <param name="cancellationToken"></param> public static async Task <bool> BuildPlayer(UwpBuildInfo buildInfo, CancellationToken cancellationToken = default) { if (buildInfo.IsCommandLine) { ParseBuildCommandLine(ref buildInfo); } var buildReport = UnityPlayerBuildTools.BuildUnityPlayer(buildInfo); var success = buildReport != null && buildReport.summary.result == BuildResult.Succeeded; if (success && buildInfo.BuildAppx) { success &= await UwpAppxBuildTools.BuildAppxAsync(buildInfo, cancellationToken); } return(success); }