From 26b7f4d109a46a8364a4966f7d69b9da9f334823 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Mon, 4 Aug 2025 19:44:45 +0800 Subject: [PATCH] build --- .../Utils/AssetBundleUtils.cs | 48 ++++++++----------- Assets/Scripts/Const/BFPlatform.Language.cs | 2 +- 2 files changed, 21 insertions(+), 29 deletions(-) diff --git a/Assets/Editor/BFBuildProjectTools/Utils/AssetBundleUtils.cs b/Assets/Editor/BFBuildProjectTools/Utils/AssetBundleUtils.cs index 38fdcad79..6fe8f9844 100644 --- a/Assets/Editor/BFBuildProjectTools/Utils/AssetBundleUtils.cs +++ b/Assets/Editor/BFBuildProjectTools/Utils/AssetBundleUtils.cs @@ -77,25 +77,12 @@ namespace BFEditor.Build Directory.CreateDirectory(outputPath); } - AssetBundleManifest manifest; - if (release) - { - manifest = BuildPipeline.BuildAssetBundles(outputPath, options | - BuildAssetBundleOptions.StrictMode | - BuildAssetBundleOptions.DisableLoadAssetByFileName | - BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension | - BuildAssetBundleOptions.DeterministicAssetBundle, - target); - } - else - { - manifest = BuildPipeline.BuildAssetBundles(outputPath, options | - BuildAssetBundleOptions.StrictMode | - BuildAssetBundleOptions.DisableLoadAssetByFileName | - BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension | - BuildAssetBundleOptions.DeterministicAssetBundle, - target); - } + AssetBundleManifest manifest = BuildPipeline.BuildAssetBundles(outputPath, options | + BuildAssetBundleOptions.StrictMode | + BuildAssetBundleOptions.DisableLoadAssetByFileName | + BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension | + BuildAssetBundleOptions.DeterministicAssetBundle, + target); if (manifest == null) { @@ -365,12 +352,12 @@ namespace BFEditor.Build SetProtoABName(Path.Combine(Application.dataPath, "proto"), index++ / total); SetSpineABName(Path.Combine(Application.dataPath, "arts", "spines"), index++ / total); SetFirstABName(Path.Combine(Application.dataPath, "first"), index++ / total); - // SetTimelineABName(Path.Combine(Application.dataPath, "arts", "timeline"), 16f / total); + // SetTimelineABName(Path.Combine(Application.dataPath, "arts", "timeline"), index++ / total); SetVideoABName(Path.Combine(Application.dataPath, "arts", "video"), index++ / total); - // SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, 19f / total); - // SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), 21f / total); - // SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), 22f / total); - // SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), 23f / total); + // SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, index++ / total); + // SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), index++ / total); + // SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), index++ / total); + // SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), index++ / total); EditorUtility.ClearProgressBar(); AssetDatabase.SaveAssets(); @@ -572,11 +559,11 @@ namespace BFEditor.Build { EditorUtility.DisplayProgressBar("提示", "正在设置spine ABName", progress); - var dirInfo = new DirectoryInfo(dirPath); - var dirs = dirInfo.GetDirectories(); - for (var i = 0; i < dirs.Length; i++) + string[] dirList = { "ui" , "characters" }; + for (var i = 0; i < dirList.Length; ++i) { - SetABNameBySubDir(dirs[i]); + var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i])); + SetABNameBySubDir(dirInfo); } } @@ -596,6 +583,11 @@ namespace BFEditor.Build var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i])); SetABNameBySubDir(dirInfo); } + var dirInfo2 = new DirectoryInfo(Path.Combine(dirPath, "ui", "activity")); + if (dirInfo2.Exists) + { + SetABNameBySubDir(dirInfo2); + } } static void SetBackgroundABName(string dirPath) diff --git a/Assets/Scripts/Const/BFPlatform.Language.cs b/Assets/Scripts/Const/BFPlatform.Language.cs index d2f9d8401..abc1d8bc2 100644 --- a/Assets/Scripts/Const/BFPlatform.Language.cs +++ b/Assets/Scripts/Const/BFPlatform.Language.cs @@ -42,7 +42,7 @@ namespace BF // 渠道对应的语言配置 public static Dictionary languageInfos = new Dictionary() { - {"com.juzu.b6.dev", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, + {"com.c1.dev.android", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, {"com.juzu.b6.dev.android", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, {"com.juzu.b6.dev.ios", new BFLanguageInfo(new List{"en", "cn"})}, {"com.juzu.b6.release.android", new BFLanguageInfo(new List{"en"})},