From d5f301fd30405d7dfd5225ee45d96e8ef78f4678 Mon Sep 17 00:00:00 2001 From: zhangxl <1062808664@qq.com> Date: Mon, 22 Jul 2024 16:00:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E7=9A=84=E6=97=B6=E5=80=99=E6=B2=A1=E6=9C=89?= =?UTF-8?q?builds=E6=96=87=E4=BB=B6=E5=A4=B9=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/DemoGame/GameScript/Editor/CustomBuildTool.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/DemoGame/GameScript/Editor/CustomBuildTool.cs b/Assets/DemoGame/GameScript/Editor/CustomBuildTool.cs index 444a2eb..ebfc156 100644 --- a/Assets/DemoGame/GameScript/Editor/CustomBuildTool.cs +++ b/Assets/DemoGame/GameScript/Editor/CustomBuildTool.cs @@ -64,7 +64,8 @@ namespace ZEditor private static void Run(BuildTarget buildTarget, string outputFilePath) { // 清空一下文件夹的内容,避免某些重叠问题 - Directory.Delete(outputFilePath, true); + if (Directory.Exists(outputFilePath)) + Directory.Delete(outputFilePath, true); switch (buildTarget) {