Skip to content

Commit

Permalink
Revert appveyor addition and DeployQt cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Sep 19, 2018
1 parent f1a13a1 commit a64d2ec
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 185 deletions.
4 changes: 0 additions & 4 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,3 @@ License: LGPL-2.1
Files: share/macosx/dmg-background.tiff
Copyright: 2008-2014, Andrey Tarantsov
License: MIT

Files: cmake/DeployQt.cmake
Copyright: 2018, Nathan Osman
License: MIT
31 changes: 0 additions & 31 deletions appveyor.yml

This file was deleted.

21 changes: 0 additions & 21 deletions ci/appveyor/before-build.sh

This file was deleted.

5 changes: 0 additions & 5 deletions ci/appveyor/build.sh

This file was deleted.

24 changes: 0 additions & 24 deletions ci/appveyor/install.sh

This file was deleted.

6 changes: 0 additions & 6 deletions ci/appveyor/test.sh

This file was deleted.

88 changes: 0 additions & 88 deletions cmake/DeployQt.cmake

This file was deleted.

11 changes: 7 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,11 @@ if(APPLE AND WITH_APP_BUNDLE)
set(CPACK_PACKAGE_FILE_NAME "${PROGNAME}-${KEEPASSXC_VERSION}")
include(CPack)

include(DeployQt)
macdeployqt(${PROGNAME})
add_custom_command(TARGET ${PROGNAME}
POST_BUILD
COMMAND ${MACDEPLOYQT_EXE} ${PROGNAME}.app
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/src
COMMENT "Deploying app bundle")
endif()

install(TARGETS ${PROGNAME}
Expand Down Expand Up @@ -390,8 +393,8 @@ if(MINGW)
set(gp_tool \"objdump\")
" COMPONENT Runtime)

include(DeployQt)
windeployqt(${PROGNAME})
include(DeployQt4)
install_qt4_executable(${PROGNAME}.exe)

# install Qt5 plugins
set(PLUGINS_DIR ${Qt5_PREFIX}/share/qt5/plugins)
Expand Down
3 changes: 1 addition & 2 deletions src/autotype/mac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ set_target_properties(keepassx-autotype-cocoa PROPERTIES LINK_FLAGS "-framework
target_link_libraries(keepassx-autotype-cocoa ${PROGNAME} Qt5::Core Qt5::Widgets)

if(WITH_APP_BUNDLE)
include(DeployQt)
add_custom_command(TARGET keepassx-autotype-cocoa
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/libkeepassx-autotype-cocoa.so ${PLUGIN_INSTALL_DIR}
COMMAND ${MACDEPLOYQT_EXECUTABLE} ${PROGNAME}.app -executable=${PLUGIN_INSTALL_DIR}/libkeepassx-autotype-cocoa.so -no-plugins
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")
else()
Expand Down

0 comments on commit a64d2ec

Please sign in to comment.