diff --git a/src/ucll/Shared/UnityHub.cs b/src/ucll/Shared/UnityHub.cs index 5441a19..5325b14 100644 --- a/src/ucll/Shared/UnityHub.cs +++ b/src/ucll/Shared/UnityHub.cs @@ -34,6 +34,9 @@ public string GetEditorPath(string version) if (appBundlePath == null) throw new UserException($"Unity version {version} is not installed."); + if (appBundlePath.EndsWith("Unity.exe", StringComparison.OrdinalIgnoreCase)) + return appBundlePath; + return Path.Combine(appBundlePath, platformSupport.RelativeEditorPathToExecutable); } @@ -187,4 +190,4 @@ private static void WriteStatusUpdate(string message) // However, we do want the progress feedback that the Hub provides. AnsiConsole.MarkupLine($"[cyan]{message}...[/]"); } -} \ No newline at end of file +}