少年修仙传客户端基础资源
client_Wu Xijin
2019-05-07 b3ec594c20bb7448477646e3658736f65f3be613
Assets/Editor/Tool/ClientPackageExtension.cs
@@ -15,7 +15,6 @@
        {
            try
            {
                Debug.LogFormat("从命令行中解析出来的SDKPATH 是:{0}", parameters.sdkPath);
                ClientPackage.AssetPrior = 1;
                ClientPackage.BuildPublishers(parameters.sdkPath, parameters.assetbundlePath, parameters.outputPath, parameters.publishers, parameters.buildIndex, false, false);
            }
@@ -33,6 +32,35 @@
    }
    public static void BuildEXE()
    {
        var parameters = new BuildParameters();
        if (!parameters.error)
        {
            try
            {
                ClientPackage_Standalone.AssetPrior = 1;
                ClientPackage_Standalone.Build(new ClientPackage_Standalone.BuildParams()
                {
                    assetBundle = parameters.assetbundlePath,
                    output = parameters.outputPath,
                    buildIndex = parameters.buildIndex,
                    development = false,
                    publisher = parameters.publishers,
                });
            }
            catch (Exception ex)
            {
                Debug.Log("打包EXE失败");
                Debug.Log(ex);
                EditorApplication.Exit(1);
            }
        }
        else
        {
            EditorApplication.Exit(1);
        }
    }
    class BuildParameters
    {