Fix exception when deleting non-existing folders
This commit is contained in:
parent
70ad7428c4
commit
04829fe1b2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue