build
This commit is contained in:
parent
d351d4549f
commit
26b7f4d109
@ -77,25 +77,12 @@ namespace BFEditor.Build
|
||||
Directory.CreateDirectory(outputPath);
|
||||
}
|
||||
|
||||
AssetBundleManifest manifest;
|
||||
if (release)
|
||||
{
|
||||
manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
|
||||
AssetBundleManifest 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);
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
@ -42,7 +42,7 @@ namespace BF
|
||||
// 渠道对应的语言配置
|
||||
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.ios", new BFLanguageInfo(new List<string>{"en", "cn"})},
|
||||
{"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user