少年修仙传客户端基础资源
hch
2025-02-14 822513a5dff92368ef8dfe5d12a3544b67bd747a
Assets/Editor/Tool/ClientPackageExtension.cs
@@ -15,7 +15,7 @@
        {
            try
            {
                Debug.LogFormat("从命令行中解析出来的SDKPATH 是:{0}", parameters.sdkPath);
                ClientPackage.AssetPrior = 1;
                ClientPackage.BuildPublishers(parameters.sdkPath, parameters.assetbundlePath, parameters.outputPath, parameters.publishers, parameters.buildIndex, false, false);
            }
            catch (Exception ex)
@@ -32,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
    {