diff --git a/.gitignore b/.gitignore index 3a70b02..eaa5594 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,9 @@ hs_err_pid* replay_pid* +build/ +.qtcreator/ +.DS_Store +CMakeLists.txt.user* +stage/ +dist/ diff --git a/CMakeLists.txt b/CMakeLists.txt index c18af84..ec5abdb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) \ No newline at end of file