From 50a5d52aa3fa6a02fd092e41595fd797f6cdc1be Mon Sep 17 00:00:00 2001 From: forsakenyang Date: Tue, 17 Jul 2018 16:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E5=85=BC=E5=AE=B95.?= =?UTF-8?q?x=E7=89=88=E6=9C=AC=E7=9A=84=E6=89=93=E5=8C=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20(#416)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修正:WWW.threadPriority在WebGL下不可用,加入导出黑名单 * 修正:在LuaEnv释放时,lua_close需要在移除L之后,避免lua_gl得到错误的gl * 修改:兼容5.x版本的打包接口 --- .../Examples/13_BuildFromCLI/Editor/BuildFromCLI.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Assets/XLua/Examples/13_BuildFromCLI/Editor/BuildFromCLI.cs b/Assets/XLua/Examples/13_BuildFromCLI/Editor/BuildFromCLI.cs index cf245b7..fc1db29 100644 --- a/Assets/XLua/Examples/13_BuildFromCLI/Editor/BuildFromCLI.cs +++ b/Assets/XLua/Examples/13_BuildFromCLI/Editor/BuildFromCLI.cs @@ -33,13 +33,12 @@ public static class BuildFromCLI DelegateBridge.Gen_Flag = true; Generator.ClearAll(); Generator.GenAll(); - var options = new BuildPlayerOptions - { - target = BuildTarget.StandaloneWindows64, - targetGroup = BuildTargetGroup.Standalone, - locationPathName = string.Format("{0}/{1}", outputDir, packageName) - }; - BuildPipeline.BuildPlayer(options); + + var levels = new string[0]; + var locationPathName = string.Format("{0}/{1}", outputDir, packageName); + var target = BuildTarget.StandaloneWindows64; + var options = BuildOptions.None; + BuildPipeline.BuildPlayer(levels,locationPathName,target,options); Debug.Log("构建完成"); } } -- GitLab