| | |
| | | {
|
| | | 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;
|
| | |
|
| | |
| | | // 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++)
|