From c90c8ad99f0083f41b09b1404bfdb852d95aec9c Mon Sep 17 00:00:00 2001 From: Chase Pettit Date: Thu, 9 Jun 2016 20:13:49 -0400 Subject: [PATCH] Build apk path if android build. --- Editor/Build/BuildProject.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Editor/Build/BuildProject.cs b/Editor/Build/BuildProject.cs index 70f103f..0724b83 100644 --- a/Editor/Build/BuildProject.cs +++ b/Editor/Build/BuildProject.cs @@ -119,6 +119,14 @@ public static void PerformBuild(BuildPlatform platform) // Build player. Debug.Log("Building " + platform.name); FileUtil.DeleteFileOrDirectory(platform.buildPath); + + switch (platform.target) + { + case BuildTarget.Android: + Directory.CreateDirectory(platform.buildPath + platform.exeName); + break; + } + BuildPipeline.BuildPlayer(BuildSettings.scenesInBuild, platform.buildPath + platform.exeName, platform.target, BuildOptions.None); // Copy any other data.