From 520dc64b433f9dd64d42a17325853440e5958bde Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Mon, 7 Oct 2024 16:13:46 -0700 Subject: [PATCH] fix: fix path for client executable on windows --- Assets/Rivet/Editor/Util/Builder.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Assets/Rivet/Editor/Util/Builder.cs b/Assets/Rivet/Editor/Util/Builder.cs index 5b5e7fa..37f55a1 100644 --- a/Assets/Rivet/Editor/Util/Builder.cs +++ b/Assets/Rivet/Editor/Util/Builder.cs @@ -256,11 +256,7 @@ private static string FindPlayerExecutablePath(string buildPath, BuildTarget bui } else { - executablePath = Path.Combine(buildPath, productName); - if (buildTarget == BuildTarget.StandaloneWindows || buildTarget == BuildTarget.StandaloneWindows64) - { - executablePath += ".exe"; - } + executablePath = buildPath; } if (!File.Exists(executablePath)) @@ -286,7 +282,9 @@ public static string GetBuildName(string baseName, BuildTarget target, bool isSe if (target == BuildTarget.StandaloneOSX && !isServer) { return baseName + ".app"; - } else if (target == BuildTarget.StandaloneWindows || target == BuildTarget.StandaloneWindows64) { + } + if (target == BuildTarget.StandaloneWindows || target == BuildTarget.StandaloneWindows64) + { return baseName + ".exe"; } return baseName;