修复第一次构建的时候没有builds文件夹的报错问题

pull/1/head
zhangxl 2024-07-22 16:00:45 +08:00
parent 379cecbb29
commit d5f301fd30
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{