From 89e196208d89007a7b033b0e70488035ae61eb73 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 22 五月 2026 11:48:53 +0800
Subject: [PATCH] 改动2

---
 Assets/Editor/Tool/ClientPackage.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Assets/Editor/Tool/ClientPackage.cs b/Assets/Editor/Tool/ClientPackage.cs
index aff935e..1379df2 100644
--- a/Assets/Editor/Tool/ClientPackage.cs
+++ b/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++)

--
Gitblit v1.8.0