Skip to content

Commit

Permalink
Updated post build script to delete README.md if exists in the build …
Browse files Browse the repository at this point in the history
…folder.
  • Loading branch information
Cheeseness committed May 3, 2017
1 parent e004723 commit 3c16a52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/scripts/editor/PostBuildPipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProj
//BuildScript.BuildTargetAssetBundles();

string targetPath = pathToBuiltProject.Substring(0, pathToBuiltProject.LastIndexOf('/') + 1);
if (File.Exists(targetPath + "/README.md"))
{
FileUtil.DeleteFileOrDirectory(targetPath + "/README.md");
}
FileUtil.CopyFileOrDirectory(Application.dataPath + "/../README.md", targetPath + "/README.md");

if (Utility.GetPlatformName() == "OSX")
Expand Down

0 comments on commit 3c16a52

Please sign in to comment.