more cleanups

This commit is contained in:
2026-09-30 20:46:20 +03:00
parent 6567e731d1
commit c11da87908
2 changed files with 20 additions and 1 deletions
+14 -1
View File
@@ -132,7 +132,7 @@ qt_add_qml_module(BiLauncher
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.
set_target_properties(BiLauncher PROPERTIES
# MACOSX_BUNDLE_GUI_IDENTIFIER com.example.BiLauncher
MACOSX_BUNDLE_GUI_IDENTIFIER com.galeondev.BiLauncher
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
# Попадает в CFBundleIconFile сгенерированного Info.plist — только имя
@@ -210,3 +210,16 @@ install(TARGETS BiLauncher
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
find_package(Qt6 REQUIRED COMPONENTS Qml)
set(deploy_opts "")
if(APPLE)
set(deploy_opts --hardened-runtime)
endif()
qt_generate_deploy_qml_app_script(
TARGET BiLauncher
OUTPUT_SCRIPT deploy_script
MACOS_BUNDLE_POST_BUILD
NO_UNSUPPORTED_PLATFORM_ERROR
DEPLOY_USER_QML_MODULES_ON_UNSUPPORTED_PLATFORM
DEPLOY_TOOL_OPTIONS ${deploy_opts})
install(SCRIPT ${deploy_script})