Skip to content

Commit

Permalink
Merge branch 'readme-deploy-fix' into humble_release
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheeseness committed May 3, 2017
2 parents e004723 + 3c16a52 commit 5dc8d48
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 5dc8d48

Please sign in to comment.