00 更新res打包逻辑
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Stary.Evo
|
||||
if (PlayerPrefs.GetInt("CreatDomainDirectory") == 0)
|
||||
{
|
||||
PlayerPrefs.SetInt("CreatDomainDirectory", 1);
|
||||
bool isOk = EditorUtility.DisplayDialog("提示", "是否检索并创建缺失目录", "是", "否");
|
||||
bool isOk = EditorUtility.DisplayDialog("提示", "发现目录存在缺失,是否检索并创建缺失目录", "是", "否");
|
||||
if (isOk)
|
||||
{
|
||||
var DomainAll = CreatAssetWindow.GetCreatDomainAll();
|
||||
|
||||
@@ -25,11 +25,11 @@ namespace Stary.Evo.Editor
|
||||
get { return Application.dataPath + "/Domain"; }
|
||||
}
|
||||
|
||||
// public static string AtlasRemotedRoot
|
||||
// {
|
||||
// get { return Application.dataPath + "/AddressableRes/Sprites"; }
|
||||
// }
|
||||
//
|
||||
public static string MainDomainRoot
|
||||
{
|
||||
get { return Application.dataPath + "/Main"; }
|
||||
}
|
||||
|
||||
// public static string SpriteRemotedAtlas
|
||||
// {
|
||||
// get { return Application.dataPath + "/AddressableRes/SpriteAtlas"; }
|
||||
@@ -154,10 +154,14 @@ namespace Stary.Evo.Editor
|
||||
HotfixMainResDomain hotfixMainResDomain = AssetDatabase.LoadAssetAtPath<HotfixMainResDomain>(configPath);
|
||||
packageName = hotfixMainResDomain.hotfixMainResDomainEntity.domain;
|
||||
Mark();
|
||||
if(!BuildAssetWindow.GetBuildPackageName().Equals("Main"))
|
||||
CreateRes(packageName,
|
||||
$"{DomainRoot}/{BuildAssetWindow.GetBuildPackageName()}/AddressableRes",
|
||||
$"{DomainRoot}/{BuildAssetWindow.GetBuildPackageName()}/HotUpdate");
|
||||
|
||||
else
|
||||
CreateRes(packageName,
|
||||
$"{DomainRoot}/{BuildAssetWindow.GetBuildPackageName()}/AddressableRes",
|
||||
$"{MainDomainRoot}/Script/Runtime/HotUpdate");
|
||||
EditorUtility.DisplayDialog("自动标记", "自动标记成功", "确定");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user