三国卡牌客户端基础资源仓库
yyl
2026-05-22 89e196208d89007a7b033b0e70488035ae61eb73
Assets/Editor/Tool/ClientPackage.cs
@@ -15,6 +15,7 @@
{
    public static readonly string versionsFilePath = Application.dataPath + "/Editor/VersionConfigs/Versions.txt";
    public static readonly string[] baseLevels = new string[] { "Assets/Resources/Scenes/Launch.unity" };
    private static readonly string[] LaunchRequiredYooPackages = { "Builtin", "Dll" };
    public static string auditOutTime = string.Empty;
@@ -144,14 +145,12 @@
        // YooAsset StreamingAssets 根目录
        string yooRoot = AssetBundleBuilderHelper.GetStreamingAssetsRoot();
        // ---- NullAsset(小包):不保留任何 Package,全部从 CDN 按需下载 ----
        // ---- NullAsset(小包):只保留 Launch 必需 Package,其它资源从 CDN 按需下载 ----
        if (smallPackages.Count > 0)
        {
            // 删除所有 Package 文件夹
            string[] keepPackages = { };
            RemovePackagesExcept(yooRoot, keepPackages);
            RemovePackagesExcept(yooRoot, LaunchRequiredYooPackages);
            // 写入空的 Buildin 包列表,运行时所有包走纯 CacheFileSystem
            // 写入随包 Package 列表,运行时 Builtin/Dll 创建 BuildinFileSystem,其它包走 CacheFileSystem
            YooAssetBuildTool.WriteBuildinPackageList();
            for (int i = 0; i < smallPackages.Count; i++)