more cleanups
This commit is contained in:
@@ -58,3 +58,9 @@
|
|||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
replay_pid*
|
replay_pid*
|
||||||
|
|
||||||
|
build/
|
||||||
|
.qtcreator/
|
||||||
|
.DS_Store
|
||||||
|
CMakeLists.txt.user*
|
||||||
|
stage/
|
||||||
|
dist/
|
||||||
|
|||||||
+14
-1
@@ -132,7 +132,7 @@ qt_add_qml_module(BiLauncher
|
|||||||
# If you are developing for iOS or macOS you should consider setting an
|
# If you are developing for iOS or macOS you should consider setting an
|
||||||
# explicit, fixed bundle identifier manually though.
|
# explicit, fixed bundle identifier manually though.
|
||||||
set_target_properties(BiLauncher PROPERTIES
|
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_BUNDLE_VERSION ${PROJECT_VERSION}
|
||||||
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
|
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
|
||||||
# Попадает в CFBundleIconFile сгенерированного Info.plist — только имя
|
# Попадает в CFBundleIconFile сгенерированного Info.plist — только имя
|
||||||
@@ -210,3 +210,16 @@ install(TARGETS BiLauncher
|
|||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
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})
|
||||||
Reference in New Issue
Block a user