This commit is contained in:
puxuan 2025-08-04 19:44:45 +08:00
parent d351d4549f
commit 26b7f4d109
2 changed files with 21 additions and 29 deletions

View File

@ -77,25 +77,12 @@ namespace BFEditor.Build
Directory.CreateDirectory(outputPath); Directory.CreateDirectory(outputPath);
} }
AssetBundleManifest manifest; AssetBundleManifest manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
if (release) BuildAssetBundleOptions.StrictMode |
{ BuildAssetBundleOptions.DisableLoadAssetByFileName |
manifest = BuildPipeline.BuildAssetBundles(outputPath, options | BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
BuildAssetBundleOptions.StrictMode | BuildAssetBundleOptions.DeterministicAssetBundle,
BuildAssetBundleOptions.DisableLoadAssetByFileName | target);
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
BuildAssetBundleOptions.DeterministicAssetBundle,
target);
}
else
{
manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
BuildAssetBundleOptions.StrictMode |
BuildAssetBundleOptions.DisableLoadAssetByFileName |
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
BuildAssetBundleOptions.DeterministicAssetBundle,
target);
}
if (manifest == null) if (manifest == null)
{ {
@ -365,12 +352,12 @@ namespace BFEditor.Build
SetProtoABName(Path.Combine(Application.dataPath, "proto"), index++ / total); SetProtoABName(Path.Combine(Application.dataPath, "proto"), index++ / total);
SetSpineABName(Path.Combine(Application.dataPath, "arts", "spines"), index++ / total); SetSpineABName(Path.Combine(Application.dataPath, "arts", "spines"), index++ / total);
SetFirstABName(Path.Combine(Application.dataPath, "first"), 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); SetVideoABName(Path.Combine(Application.dataPath, "arts", "video"), index++ / total);
// SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, 19f / total); // SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, index++ / total);
// SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), 21f / total); // SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), index++ / total);
// SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), 22f / total); // SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), index++ / total);
// SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), 23f / total); // SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), index++ / total);
EditorUtility.ClearProgressBar(); EditorUtility.ClearProgressBar();
AssetDatabase.SaveAssets(); AssetDatabase.SaveAssets();
@ -572,11 +559,11 @@ namespace BFEditor.Build
{ {
EditorUtility.DisplayProgressBar("提示", "正在设置spine ABName", progress); EditorUtility.DisplayProgressBar("提示", "正在设置spine ABName", progress);
var dirInfo = new DirectoryInfo(dirPath); string[] dirList = { "ui" , "characters" };
var dirs = dirInfo.GetDirectories(); for (var i = 0; i < dirList.Length; ++i)
for (var i = 0; i < dirs.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])); var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i]));
SetABNameBySubDir(dirInfo); SetABNameBySubDir(dirInfo);
} }
var dirInfo2 = new DirectoryInfo(Path.Combine(dirPath, "ui", "activity"));
if (dirInfo2.Exists)
{
SetABNameBySubDir(dirInfo2);
}
} }
static void SetBackgroundABName(string dirPath) static void SetBackgroundABName(string dirPath)

View File

@ -42,7 +42,7 @@ namespace BF
// 渠道对应的语言配置 // 渠道对应的语言配置
public static Dictionary<string, BFLanguageInfo> languageInfos = new Dictionary<string, BFLanguageInfo>() public static Dictionary<string, BFLanguageInfo> languageInfos = new Dictionary<string, BFLanguageInfo>()
{ {
{"com.juzu.b6.dev", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})}, {"com.c1.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
{"com.juzu.b6.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})}, {"com.juzu.b6.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
{"com.juzu.b6.dev.ios", new BFLanguageInfo(new List<string>{"en", "cn"})}, {"com.juzu.b6.dev.ios", new BFLanguageInfo(new List<string>{"en", "cn"})},
{"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})}, {"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})},