1
0
Fork 0

Fix exception when deleting non-existing folders

This commit is contained in:
Piegames 2018-04-25 23:31:41 +02:00
parent 70ad7428c4
commit 04829fe1b2

View file

@ -41,7 +41,8 @@ public class BuildSrcipt
}
public static void BuildPlatform(String platformName, BuildTarget target) {
Directory.Delete("./" + name + "_" + platformName, true);
if (Directory.Exists("./" + name + "_" + platformName))
Directory.Delete("./" + name + "_" + platformName, true);
File.Delete("./Build/DungeonDrifter_" + platformName + ".zip");
BuildPipeline.BuildPlayer(scenes, "./" + name + "_" + platformName + "/" + name, target, BuildOptions.None);
//System.Diagnostics.Process.Start("zip -r Build/DungeonDrifter_" + platformName + ".zip " + platformName + "_" + platformName);