From 3c16a52ee5c00c555ac8424a512144efa790f0ee Mon Sep 17 00:00:00 2001 From: Cheeseness Date: Wed, 3 May 2017 16:59:16 +1000 Subject: [PATCH] Updated post build script to delete README.md if exists in the build folder. --- Assets/scripts/editor/PostBuildPipeline.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/scripts/editor/PostBuildPipeline.cs b/Assets/scripts/editor/PostBuildPipeline.cs index 6dd82cb..318d2a6 100644 --- a/Assets/scripts/editor/PostBuildPipeline.cs +++ b/Assets/scripts/editor/PostBuildPipeline.cs @@ -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")