From 29dab465aac1070c1dd25963de204f54a3cf8580 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期二, 09 四月 2019 20:47:13 +0800
Subject: [PATCH] 6428 多人 前端嵌入PocoSDK方便编写自动测试脚本

---
 Assets/Editor/Tool/ClientPackage.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Assets/Editor/Tool/ClientPackage.cs b/Assets/Editor/Tool/ClientPackage.cs
index be08c88..69d5824 100644
--- a/Assets/Editor/Tool/ClientPackage.cs
+++ b/Assets/Editor/Tool/ClientPackage.cs
@@ -355,6 +355,7 @@
     public static void BuildApk(string _sdkPath, string _output, string _publisher, int _buildIndex, bool _development)
     {
         PreBuild(_publisher, _buildIndex);
+
         var auditTimeFile = StringUtility.Contact(Application.dataPath, Path.DirectorySeparatorChar, "Resources/Config/AuditTime.txt");
         if (File.Exists(auditTimeFile))
         {
@@ -534,8 +535,12 @@
 
             if (VersionConfig.Get().appId.Equals("test"))
             {
-                FileUtil.MoveFileOrDirectory(Application.dataPath + "/Editor/PocoSDK",
-                                             Application.dataPath + "/Scripts/PocoSDK");
+                if (Directory.Exists(Application.dataPath + "/Editor/PocoSDK")
+                && !Directory.Exists(Application.dataPath + "/Scripts/PocoSDK"))
+                {
+                    FileUtil.MoveFileOrDirectory(Application.dataPath + "/Editor/PocoSDK",
+                                                 Application.dataPath + "/Scripts/PocoSDK");
+                }
 
                 var _launchScript = File.ReadAllText(Application.dataPath + "/Scripts/Core/GameEngine/Login/Launch.cs");
                 if (_launchScript != null)

--
Gitblit v1.8.0