From e47f9fa871936ee22220d7dcb1906a9a1b517779 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 15 五月 2019 20:25:09 +0800
Subject: [PATCH] 3335 更新打包工具

---
 Assets/Editor/Tool/LuaBuildHelper.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Assets/Editor/Tool/LuaBuildHelper.cs b/Assets/Editor/Tool/LuaBuildHelper.cs
index f4a7032..38ab060 100644
--- a/Assets/Editor/Tool/LuaBuildHelper.cs
+++ b/Assets/Editor/Tool/LuaBuildHelper.cs
@@ -19,7 +19,7 @@
             if (extension == ".lua")
             {
                 var to = Path.ChangeExtension(from, ".txt");
-                File.Copy(from, to, true);
+                File.Move(from, to);
             }
         }
 
@@ -39,7 +39,8 @@
             var extension = Path.GetExtension(file);
             if (extension == ".txt")
             {
-                File.Delete(file);
+                var to = Path.ChangeExtension(file, ".lua");
+                File.Move(file, to);
             }
         }
     }

--
Gitblit v1.8.0