diff --git a/UpmGitTool/Assets/Scritps/Core/AppRunner.cs b/UpmGitTool/Assets/Scritps/Core/AppRunner.cs index 5b7343b0e35c7c5e8b3da07190e557ac1cd2d52c..e73c61f15d2ab525ecbc33a50b473ca81fb06fd6 100644 --- a/UpmGitTool/Assets/Scritps/Core/AppRunner.cs +++ b/UpmGitTool/Assets/Scritps/Core/AppRunner.cs @@ -31,14 +31,20 @@ namespace UpmGitTool Application.targetFrameRate = 30; AppState.Setting = Setting; + +#if UNITY_EDITOR AppState.Path_FetchJsCmd = FetchPackagePath; - AppState.Path_WorkingDirectory = WorkingDirectory; AppState.Path_NodeJsExe = NodeJsPath; + AppState.Path_WorkingDirectory = WorkingDirectory; +#endif + GYEventsCenter.RegisterEventMsg(Lib.ON_ADD_GIT_FETCH_REQ, OnAddGitFetchReq); StartCoroutine(AutoReadFeatchResult()); } +#if UNITY_EDITOR + [LabelText("Node.exe路径")] [FilePath] public string NodeJsPath; @@ -52,14 +58,14 @@ namespace UpmGitTool public string WorkingDirectory; [Title("编辑器测试")] - [LabelText("测试工程")] + [LabelText("测试工程")] [FolderPath(AbsolutePath = true)] [PropertyOrder(15)] public string TestProjectPath; [PropertyOrder(15)] [LabelText("测试工程路径")] - [ShowInInspector,DisplayAsString] + [ShowInInspector, DisplayAsString] public string Path_ManifestFile => AppState.Path_ManifestFile; [Button("读取测试工程")] @@ -78,6 +84,8 @@ namespace UpmGitTool CoreFunction.SaveManifest(); } +#endif + private IEnumerator AutoReadFeatchResult() { string resultDir = $"{AppState.Path_WorkingDirectory}/Results-2.0.0";