mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-09 23:12:23 -04:00
Multiple macOS fixes and include keepassxc-cli in DMG (#2165)
* Fixes including keepassxc-cli when building KeePassXC dmg on Mac. resolves #1697 * Fix Qt search path and Properties display on macOS * Simplify packaging POST_BUILD fixups * Various fixes to get cli to run on macos * Correct cli tests on macOS * Several macOS related GUI test fixes
This commit is contained in:
parent
b1ff346f63
commit
dd5665c656
13 changed files with 83 additions and 54 deletions
|
@ -47,6 +47,44 @@ install(TARGETS keepassxc-cli
|
|||
BUNDLE DESTINATION . COMPONENT Runtime
|
||||
RUNTIME DESTINATION ${CLI_INSTALL_DIR} COMPONENT Runtime)
|
||||
|
||||
if(APPLE AND WITH_APP_BUNDLE)
|
||||
add_custom_command(TARGET keepassxc-cli
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_INSTALL_NAME_TOOL}
|
||||
-change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore
|
||||
"@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore"
|
||||
-change /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui
|
||||
"@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui"
|
||||
-change /usr/local/opt/qt/lib/QtMacExtras.framework/Versions/5/QtMacExtras
|
||||
"@executable_path/../Frameworks/QtMacExtras.framework/Versions/5/QtMacExtras"
|
||||
-change /usr/local/opt/qt/lib/QtConcurrent.framework/Versions/5/QtConcurrent
|
||||
"@executable_path/../Frameworks/QtConcurrent.framework/Versions/5/QtConcurrent"
|
||||
-change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore
|
||||
"@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore"
|
||||
-change /usr/local/opt/qt/lib/QtNetwork.framework/Versions/5/QtNetwork
|
||||
"@executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork"
|
||||
-change /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets
|
||||
"@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets"
|
||||
-change /usr/local/opt/qt/lib/QtSvg.framework/Versions/5/QtSvg
|
||||
"@executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg"
|
||||
-change /usr/local/opt/libgcrypt/lib/libgcrypt.20.dylib
|
||||
"@executable_path/../Frameworks/libgcrypt.20.dylib"
|
||||
-change /usr/local/opt/argon2/lib/libargon2.1.dylib
|
||||
"@executable_path/../Frameworks/libargon2.1.dylib"
|
||||
-change /usr/local/opt/libgpg-error/lib/libgpg-error.0.dylib
|
||||
"@executable_path/../Frameworks/libgpg-error.0.dylib"
|
||||
-change /usr/local/opt/libsodium/lib/libsodium.23.dylib
|
||||
"@executable_path/../Frameworks/libsodium.23.dylib"
|
||||
-change /usr/local/opt/qrencode/lib/libqrencode.4.dylib
|
||||
"@executable_path/../Frameworks/libqrencode.4.dylib"
|
||||
-change /usr/local/opt/libyubikey/lib/libyubikey.0.dylib
|
||||
"@executable_path/../Frameworks/libyubikey.0.dylib"
|
||||
-change /usr/local/opt/ykpers/lib/libykpers-1.1.dylib
|
||||
"@executable_path/../Frameworks/libykpers-1.1.dylib"
|
||||
keepassxc-cli
|
||||
COMMENT "Changing linking of keepassxc-cli")
|
||||
endif()
|
||||
|
||||
if(APPLE OR UNIX)
|
||||
install(FILES keepassxc-cli.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
|
||||
execute_process(COMMAND mandb -q)
|
||||
|
|
|
@ -42,9 +42,7 @@ int main(int argc, char** argv)
|
|||
QCoreApplication app(argc, argv);
|
||||
QCoreApplication::setApplicationVersion(KEEPASSXC_VERSION);
|
||||
|
||||
#ifdef QT_NO_DEBUG
|
||||
Bootstrap::bootstrapApplication();
|
||||
#endif
|
||||
Bootstrap::bootstrap();
|
||||
|
||||
TextStream out(stdout);
|
||||
QStringList arguments;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue