From 59260dff13148b503662b7d7c4eaf25f409a717c Mon Sep 17 00:00:00 2001 From: Chase Pettit Date: Thu, 26 Jan 2017 20:45:44 -0500 Subject: [PATCH] Trim trailing slashes from buildPath. --- Editor/Build/BuildProject.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Editor/Build/BuildProject.cs b/Editor/Build/BuildProject.cs index e99e414..5a20e3d 100644 --- a/Editor/Build/BuildProject.cs +++ b/Editor/Build/BuildProject.cs @@ -96,7 +96,8 @@ public static string GenerateBuildPath(string prototype, BuildReleaseType releas { string resolvedProto = ResolvePath(prototype, releaseType, buildPlatform, arch, dist, buildTime); string buildPath = Path.Combine(BuildSettings.basicSettings.baseBuildFolder, resolvedProto); - buildPath = Path.GetFullPath(buildPath); + buildPath = Path.GetFullPath(buildPath).TrimEnd('\\').TrimEnd('/'); + return buildPath; }