From cef617af8aeff24229446b876712388a5d3d5461 Mon Sep 17 00:00:00 2001 From: dante ruiz Date: Mon, 17 Jun 2019 14:04:05 -0700 Subject: [PATCH] be able to rename launcher package --- launchers/darwin/CMakeLists.txt | 3 ++- launchers/darwin/cmake/modules/MacOSXBundleInfo.plist.in | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/launchers/darwin/CMakeLists.txt b/launchers/darwin/CMakeLists.txt index 2de43d93cb..4da675fcc9 100644 --- a/launchers/darwin/CMakeLists.txt +++ b/launchers/darwin/CMakeLists.txt @@ -64,7 +64,8 @@ function(set_from_env _RESULT_NAME _ENV_VAR_NAME _DEFAULT_VALUE) endfunction() add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${src_files}) -set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${APP_NAME}) +set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${APP_NAME} + MACOSX_BUNDLE_BUNDLE_NAME ${APP_NAME}) set_from_env(LAUNCHER_HMAC_SECRET LAUNCHER_HMAC_SECRET "") if (LAUNCHER_HMAC_SECRET STREQUAL "") message(FATAL_ERROR "LAUNCHER_HMAC_SECRET is not set") diff --git a/launchers/darwin/cmake/modules/MacOSXBundleInfo.plist.in b/launchers/darwin/cmake/modules/MacOSXBundleInfo.plist.in index 62d6856ba9..4c87bff3cf 100644 --- a/launchers/darwin/cmake/modules/MacOSXBundleInfo.plist.in +++ b/launchers/darwin/cmake/modules/MacOSXBundleInfo.plist.in @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion English CFBundleExecutable - ${EXECUTABLE_NAME} + ${APP_NAME} CFBundleIconFile ${MACOSX_BUNDLE_ICON_FILE} CFBundleIdentifier @@ -29,7 +29,9 @@ Window NSPrincipalClass NSApplication + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} CFBundleDisplayName - HQ Launcher + CFBundleName