11
This commit is contained in:
@@ -62,18 +62,18 @@ namespace Stary.Evo.Editor
|
|||||||
GetBuildPackageNames();
|
GetBuildPackageNames();
|
||||||
if (string.IsNullOrEmpty(ip))
|
if (string.IsNullOrEmpty(ip))
|
||||||
{
|
{
|
||||||
buildAssetType = BuildAssetType.Login;
|
buildAssetType = Stary.Evo.BuildOriginality.BuildAssetType.Login;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isValidateToken = await WebRequestSystem.GetValidateToken(ip + "/Authentication/validateToken");
|
bool isValidateToken = await WebRequestSystem.GetValidateToken(ip + "/Authentication/validateToken");
|
||||||
if (isValidateToken)
|
if (isValidateToken)
|
||||||
{
|
{
|
||||||
buildAssetType = BuildAssetType.Build;
|
buildAssetType = Stary.Evo.BuildOriginality.BuildAssetType.Build;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buildAssetType = BuildAssetType.Login;
|
buildAssetType = Stary.Evo.BuildOriginality.BuildAssetType.Login;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -92,16 +92,16 @@ namespace Stary.Evo.Editor
|
|||||||
window.Close();
|
window.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
[EnumToggleButtons, HideLabel] public BuildAssetType buildAssetType;
|
[EnumToggleButtons, HideLabel] public Stary.Evo.BuildOriginality.BuildAssetType buildAssetType;
|
||||||
|
|
||||||
#region BuildAssetLogin
|
#region BuildAssetLogin
|
||||||
|
|
||||||
[ShowIf("@ buildAssetType== BuildAssetType.Login")]
|
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Login")]
|
||||||
[BoxGroup("Login", showLabel: false)]
|
[BoxGroup("Login", showLabel: false)]
|
||||||
[OnValueChanged("SetWebRequestInfo")]
|
[OnValueChanged("SetWebRequestInfo")]
|
||||||
public string ip, userName, password;
|
public string ip, userName, password;
|
||||||
|
|
||||||
[ShowIf("@ buildAssetType== BuildAssetType.Login")]
|
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Login")]
|
||||||
[BoxGroup("Login", showLabel: false)]
|
[BoxGroup("Login", showLabel: false)]
|
||||||
[Button("登录", ButtonSizes.Large)]
|
[Button("登录", ButtonSizes.Large)]
|
||||||
[InfoBox("@ message", InfoMessageType.Info)]
|
[InfoBox("@ message", InfoMessageType.Info)]
|
||||||
@@ -142,7 +142,7 @@ namespace Stary.Evo.Editor
|
|||||||
message = "当前登录状态为:" + islogin;
|
message = "当前登录状态为:" + islogin;
|
||||||
if (islogin)
|
if (islogin)
|
||||||
{
|
{
|
||||||
buildAssetType = BuildAssetType.Build;
|
buildAssetType = Stary.Evo.BuildOriginality.BuildAssetType.Build;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ namespace Stary.Evo.Editor
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BoxGroup("Build", showLabel: false)]
|
[BoxGroup("Build", showLabel: false)]
|
||||||
[ShowIf("@ buildAssetType== BuildAssetType.Build")]
|
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||||
[Title("包裹列表", titleAlignment: TitleAlignments.Centered)]
|
[Title("包裹列表", titleAlignment: TitleAlignments.Centered)]
|
||||||
[HorizontalGroup("Build/BuildPipeline"), HideLabel]
|
[HorizontalGroup("Build/BuildPipeline"), HideLabel]
|
||||||
[ValueDropdown("GetBuildPackageNames")]
|
[ValueDropdown("GetBuildPackageNames")]
|
||||||
@@ -164,7 +164,7 @@ namespace Stary.Evo.Editor
|
|||||||
public string selectedPackageNames;
|
public string selectedPackageNames;
|
||||||
|
|
||||||
[BoxGroup("Build", showLabel: false)]
|
[BoxGroup("Build", showLabel: false)]
|
||||||
[ShowIf("@ buildAssetType== BuildAssetType.Build")]
|
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||||
[Title("当前打包平台", titleAlignment: TitleAlignments.Centered)]
|
[Title("当前打包平台", titleAlignment: TitleAlignments.Centered)]
|
||||||
[ReadOnly]
|
[ReadOnly]
|
||||||
[HorizontalGroup("Build/BuildPipeline"), HideLabel]
|
[HorizontalGroup("Build/BuildPipeline"), HideLabel]
|
||||||
@@ -175,7 +175,7 @@ namespace Stary.Evo.Editor
|
|||||||
|
|
||||||
[Title("版本号", titleAlignment: TitleAlignments.Centered)]
|
[Title("版本号", titleAlignment: TitleAlignments.Centered)]
|
||||||
[HorizontalGroup("Build/PackageVersion"), HideLabel]
|
[HorizontalGroup("Build/PackageVersion"), HideLabel]
|
||||||
[ShowIf("@ buildAssetType== BuildAssetType.Build")]
|
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||||
[OnValueChanged("OnPackageValueChanged")]
|
[OnValueChanged("OnPackageValueChanged")]
|
||||||
public string _packageVersion;
|
public string _packageVersion;
|
||||||
|
|
||||||
@@ -253,13 +253,13 @@ namespace Stary.Evo.Editor
|
|||||||
#region Update
|
#region Update
|
||||||
|
|
||||||
[BoxGroup("Build", showLabel: false)]
|
[BoxGroup("Build", showLabel: false)]
|
||||||
[ShowIf("@ buildAssetType== BuildAssetType.Build")]
|
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||||
[Title("打包本地资源", titleAlignment: TitleAlignments.Centered)]
|
[Title("打包本地资源", titleAlignment: TitleAlignments.Centered)]
|
||||||
[HideLabel]
|
[HideLabel]
|
||||||
public BuildAssetEntity onBuildPipelineEntity;
|
public BuildAssetEntity onBuildPipelineEntity;
|
||||||
|
|
||||||
[BoxGroup("Build", showLabel: false)]
|
[BoxGroup("Build", showLabel: false)]
|
||||||
[ShowIf("@ buildAssetType== BuildAssetType.Build")]
|
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||||
[Title("上传资源", titleAlignment: TitleAlignments.Centered)]
|
[Title("上传资源", titleAlignment: TitleAlignments.Centered)]
|
||||||
[HideLabel]
|
[HideLabel]
|
||||||
public BuildAssetEntity onUpdateBuildPipelineEntity;
|
public BuildAssetEntity onUpdateBuildPipelineEntity;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Stary.Evo
|
namespace Stary.Evo.BuildOriginality
|
||||||
{
|
{
|
||||||
public enum BuildAssetType
|
public enum BuildAssetType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.staryevo.buildoriginality",
|
"name": "com.staryevo.buildoriginality",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"displayName": "00.StaryEvo.BuildOriginality",
|
"displayName": "00.StaryEvo.BuildOriginality",
|
||||||
"description": "美术打包工具",
|
"description": "美术打包工具",
|
||||||
"unity": "2021.3",
|
"unity": "2021.3",
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ namespace Stary.Evo.Editor
|
|||||||
|
|
||||||
#region 打包相关参数
|
#region 打包相关参数
|
||||||
|
|
||||||
public string packageName;
|
protected string packageName;
|
||||||
protected string selectedBuildPipelines;
|
protected string selectedBuildPipelines;
|
||||||
public string packageVersion;
|
protected string packageVersion;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
// protected bool isSimulate;
|
// protected bool isSimulate;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.staryevo.tools",
|
"name": "com.staryevo.tools",
|
||||||
"version": "1.1.9",
|
"version": "1.1.10",
|
||||||
"displayName": "00.StaryEvo.Tools",
|
"displayName": "00.StaryEvo.Tools",
|
||||||
"description": "This is an Framework package(后台服务器版本,端口9527)",
|
"description": "This is an Framework package(后台服务器版本,端口9527)",
|
||||||
"unity": "2021.3",
|
"unity": "2021.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user