mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix data path on Mac OS.
This commit is contained in:
parent
bde397503e
commit
ca7c59d313
@ -114,7 +114,7 @@ if(MINGW)
|
||||
set(DATA_INSTALL_DIR "share")
|
||||
elseif(APPLE)
|
||||
set(BIN_INSTALL_DIR "")
|
||||
set(DATA_INSTALL_DIR "Contents/Resources")
|
||||
set(DATA_INSTALL_DIR "${PROGNAME}.app/Contents/Resources")
|
||||
else(MINGW)
|
||||
set(BIN_INSTALL_DIR "bin")
|
||||
set(DATA_INSTALL_DIR "share/keepassx")
|
||||
|
@ -147,5 +147,5 @@ add_library( keepassx_core STATIC ${keepassx_SOURCES} )
|
||||
add_executable( ${PROGNAME} WIN32 MACOSX_BUNDLE main.cpp )
|
||||
target_link_libraries( ${PROGNAME} keepassx_core ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${GCRYPT_LIBRARIES} ${ZLIB_LIBRARIES} )
|
||||
install(TARGETS ${PROGNAME}
|
||||
BUNDLE DESTINATION .
|
||||
BUNDLE DESTINATION . COMPONENT Runtime
|
||||
RUNTIME DESTINATION ${BIN_INSTALL_DIR} COMPONENT Runtime)
|
||||
|
@ -68,7 +68,7 @@ DataPath::DataPath()
|
||||
}
|
||||
#endif
|
||||
#ifdef Q_WS_MAC
|
||||
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../Resources/keepassx")) {
|
||||
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../Resources")) {
|
||||
}
|
||||
#endif
|
||||
#ifdef Q_WS_WIN
|
||||
|
Loading…
Reference in New Issue
Block a user