From 92e9cd7cb82bef966da1e0b8cd005ba38e25c694 Mon Sep 17 00:00:00 2001 From: Andreas Stange Date: Sat, 21 Jan 2023 12:05:14 +0100 Subject: [PATCH] fix menu item to build for macOS --- .../Packages/playshared/Editor/BuildTools/BuildUtils.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UltraStar Play/Packages/playshared/Editor/BuildTools/BuildUtils.cs b/UltraStar Play/Packages/playshared/Editor/BuildTools/BuildUtils.cs index ccf0c02ab..7446118f1 100644 --- a/UltraStar Play/Packages/playshared/Editor/BuildTools/BuildUtils.cs +++ b/UltraStar Play/Packages/playshared/Editor/BuildTools/BuildUtils.cs @@ -19,6 +19,11 @@ public static void PerformCustomBuild(CustomBuildOptions options) string outputFolderPath = GetBuildOutputFolder(options.appName, options.buildTarget); string executableFileInOutputFolder = !executableName.IsNullOrEmpty() ? $"/{executableName}" : ""; string fullOutputPath = $"{outputFolderPath}{executableFileInOutputFolder}"; + if (options.buildTarget == BuildTarget.StandaloneOSX) + { + fullOutputPath += ".app"; + } + string[] enabledScenePaths = GetEnabledScenePaths(); Debug.Log($"Starting build of {options.appName} for {options.buildTarget}. Build options: {options.buildOptions}. Target path: {Path.GetFullPath(fullOutputPath)}");