diff --git a/UpmGitTool/Assets/Scritps/Core/AppRunner.cs b/UpmGitTool/Assets/Scritps/Core/AppRunner.cs
index ab5e427e365cd8d34a040664d969089baa4aad18..503ba5a734b98f743d5959e94027872aa7da6ae2 100644
--- a/UpmGitTool/Assets/Scritps/Core/AppRunner.cs
+++ b/UpmGitTool/Assets/Scritps/Core/AppRunner.cs
@@ -36,17 +36,6 @@ namespace UpmGitTool
StartCoroutine(AutoReadFeatchResult());
}
-
- [LabelText("测试工程")]
- [FolderPath(AbsolutePath = true)]
- public string TestProjectPath;
-
- [Button]
- public void Test()
- {
- CoreFunction.OpenUnityProject(TestProjectPath);
- }
-
[LabelText("Node.exe路径")]
[FilePath]
public string NodeJsPath;
@@ -59,6 +48,33 @@ namespace UpmGitTool
[FolderPath(AbsolutePath = true)]
public string WorkingDirectory;
+ [Title("编辑器测试")]
+ [LabelText("测试工程")]
+ [FolderPath(AbsolutePath = true)]
+ [PropertyOrder(15)]
+ public string TestProjectPath;
+
+ [PropertyOrder(15)]
+ [LabelText("测试工程路径")]
+ [ShowInInspector,DisplayAsString]
+ public string Path_ManifestFile => AppState.Path_ManifestFile;
+
+ [Button("读取测试工程")]
+ [PropertyOrder(15)]
+ [ButtonGroup("TEST")]
+ public void Test()
+ {
+ CoreFunction.OpenUnityProject(TestProjectPath);
+ }
+
+ [Button("重写测试工程")]
+ [PropertyOrder(15)]
+ [ButtonGroup("TEST")]
+ public void TestWrite()
+ {
+ CoreFunction.SaveManifest();
+ }
+
private IEnumerator AutoReadFeatchResult()
{
string resultDir = $"{AppState.Path_WorkingDirectory}/Results-2.0.0";
@@ -76,7 +92,6 @@ namespace UpmGitTool
}
}
-
private void OnAddGitFetchReq(string msgId, object data)
{
if (reqCorotinue != null) return;
diff --git a/UpmGitTool/Assets/Scritps/Core/CoreFunction.cs b/UpmGitTool/Assets/Scritps/Core/CoreFunction.cs
index d15fde5096e2491836c86e01f82ec5d7c24573c1..d0a40c9029a02c27e1c3adc9a99e1a48a6a34028 100644
--- a/UpmGitTool/Assets/Scritps/Core/CoreFunction.cs
+++ b/UpmGitTool/Assets/Scritps/Core/CoreFunction.cs
@@ -8,6 +8,21 @@ namespace UpmGitTool
///
public static class CoreFunction
{
+
+ #region 文件读取、保存
+
+ ///
+ /// 保存清单文件
+ ///
+ public static void SaveManifest()
+ {
+ var path= AppState.Path_ManifestFile;
+ var manifest = AppState.unityManifes;
+
+ }
+
+ #endregion
+
#region 包操作
///