提交 d25e538e 编写于 作者: 魔术师Dix's avatar 魔术师Dix

【UpmGitTool】添加测试代码,测试文件保存;

上级 469e861e
......@@ -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;
......
......@@ -8,6 +8,21 @@ namespace UpmGitTool
/// </summary>
public static class CoreFunction
{
#region 文件读取、保存
/// <summary>
/// 保存清单文件
/// </summary>
public static void SaveManifest()
{
var path= AppState.Path_ManifestFile;
var manifest = AppState.unityManifes;
}
#endregion
#region 包操作
/// <summary>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册