Skip to content

Commit

Permalink
Build apk path if android build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaser324 committed Jun 10, 2016
1 parent 461dd2d commit c90c8ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Editor/Build/BuildProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c90c8ad

Please sign in to comment.