We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ec345b + 87e1d10 commit fd7b4e8Copy full SHA for fd7b4e8
1 file changed
Editor/Scripts/BuildTools.cs
@@ -35,17 +35,17 @@ public void OnPreprocessBuild(BuildReport report)
35
36
}
37
38
- if (!Directory.Exists(env.resourcesDirPath))
+ if (File.Exists(env.editorFilePath))
39
{
40
41
- Directory.CreateDirectory(env.resourcesDirPath);
+ if (!Directory.Exists(env.resourcesDirPath))
42
+ {
43
- _resourcesDirCreated = true;
44
+ Directory.CreateDirectory(env.resourcesDirPath);
45
- }
46
+ _resourcesDirCreated = true;
47
- if (File.Exists(env.editorFilePath))
48
- {
+ }
49
50
FileUtil.CopyFileOrDirectory(env.editorFilePath, env.runtimeFilePath);
51
0 commit comments