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