Oops, I did it again
This commit is contained in:
parent
04829fe1b2
commit
033ea1a740
1 changed files with 4 additions and 1 deletions
|
@ -41,9 +41,12 @@ public class BuildSrcipt
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void BuildPlatform(String platformName, BuildTarget target) {
|
public static void BuildPlatform(String platformName, BuildTarget target) {
|
||||||
|
if (!Directory.Exists("./Build"))
|
||||||
|
Directory.CreateDirectory("./Build");
|
||||||
if (Directory.Exists("./" + name + "_" + platformName))
|
if (Directory.Exists("./" + name + "_" + platformName))
|
||||||
Directory.Delete("./" + name + "_" + platformName, true);
|
Directory.Delete("./" + name + "_" + platformName, true);
|
||||||
File.Delete("./Build/DungeonDrifter_" + platformName + ".zip");
|
if (File.Exists("./Build/DungeonDrifter_" + platformName + ".zip"))
|
||||||
|
File.Delete("./Build/DungeonDrifter_" + platformName + ".zip");
|
||||||
BuildPipeline.BuildPlayer(scenes, "./" + name + "_" + platformName + "/" + name, target, BuildOptions.None);
|
BuildPipeline.BuildPlayer(scenes, "./" + name + "_" + platformName + "/" + name, target, BuildOptions.None);
|
||||||
//System.Diagnostics.Process.Start("zip -r Build/DungeonDrifter_" + platformName + ".zip " + platformName + "_" + platformName);
|
//System.Diagnostics.Process.Start("zip -r Build/DungeonDrifter_" + platformName + ".zip " + platformName + "_" + platformName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue