--- CMakeLists.txt 2018-02-28 05:38:05.000000000 +0800
+++ CMakeLists.txt 2018-03-02 16:51:27.000000000 +0800
set(CMAKE_MACOSX_RPATH TRUE)
- find_program(MACDEPLOYQT_EXE macdeployqt HINTS ${Qt5_PREFIX}/bin ENV PATH)
- if(NOT MACDEPLOYQT_EXE)
- message(FATAL_ERROR "macdeployqt is required to build on macOS")
- message(STATUS "Using macdeployqt: ${MACDEPLOYQT_EXE}")
find_program(WINDEPLOYQT_EXE windeployqt HINTS ${Qt5_PREFIX}/bin ENV PATH)
--- src/CMakeLists.txt 2018-02-28 05:38:05.000000000 +0800
+++ src/CMakeLists.txt 2018-03-02 16:47:48.000000000 +0800
set(CPACK_PACKAGE_FILE_NAME "${PROGNAME}-${KEEPASSXC_VERSION}")
- add_custom_command(TARGET ${PROGNAME}
- COMMAND ${MACDEPLOYQT_EXE} ${PROGNAME}.app
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src
- COMMENT "Deploying app bundle")
install(TARGETS ${PROGNAME}
--- src/autotype/mac/CMakeLists.txt 2018-02-28 05:38:05.000000000 +0800
+++ src/autotype/mac/CMakeLists.txt 2018-03-02 16:48:26.000000000 +0800
add_custom_command(TARGET keepassx-autotype-cocoa
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${PLUGIN_INSTALL_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/libkeepassx-autotype-cocoa.so ${PLUGIN_INSTALL_DIR}
- COMMAND ${MACDEPLOYQT_EXE} ${PROGNAME}.app -executable=${PLUGIN_INSTALL_DIR}/libkeepassx-autotype-cocoa.so -no-plugins
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src
COMMENT "Deploying autotype plugin")