Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Aravamudhan <vraravam@users.noreply.github.com>2022-10-17 23:21:50 +0300
committerGitHub <noreply@github.com>2022-10-17 23:21:50 +0300
commitf7735afcd6a978ef8d44318f5eaacb187b0a3e28 (patch)
tree3de1b02371a32e1ddc4375ec3526f4167bb6f05c
parent56307e6cadd99f2c1685d268cd7398af46e98f0e (diff)
Allow for homebrew prefix location to handle both x64 and arm macs (#8593)
Allow for Homebrew prefix location to handle both x64 and arm macs
-rw-r--r--INSTALL.md4
-rwxr-xr-xrelease-tool7
-rwxr-xr-xutils/keepassxc-keychain2
3 files changed, 10 insertions, 3 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 0e4dd07fd..4d6b4a646 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -78,7 +78,7 @@ Note: These steps place the compiled KeePassXC binary inside the `./build/src/`
If you installed Qt5 via Homebrew, you should be able to compile KeePassXC without any changes. If CMake fails to find your Qt installation, you can specify it manually by adding the following parameter:
-`-DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake`
+`-DCMAKE_PREFIX_PATH=$(brew --prefix qt5)/lib/cmake`
(or whatever your Qt installation path is)
@@ -98,7 +98,7 @@ CMake Configuration Options
## Common Parameters
```
--DCMAKE_INSTALL_PREFIX=/usr/local
+-DCMAKE_INSTALL_PREFIX=$(brew --prefix)
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=<RelWithDebInfo/Debug/Release>
-DWITH_GUI_TESTS=ON
diff --git a/release-tool b/release-tool
index 6d8310d7b..9e1a95784 100755
--- a/release-tool
+++ b/release-tool
@@ -930,6 +930,13 @@ build() {
# linuxdeploy requires /usr as install prefix
INSTALL_PREFIX="/usr"
fi
+ if [ -n "$OS_MACOS" ]; then
+ type brew &> /dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ INSTALL_PREFIX=$(brew --prefix)
+ fi
+ fi
+
# Do not build tests cases
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DWITH_TESTS=OFF"
diff --git a/utils/keepassxc-keychain b/utils/keepassxc-keychain
index 5a6093bdb..e671c5699 100755
--- a/utils/keepassxc-keychain
+++ b/utils/keepassxc-keychain
@@ -5,7 +5,7 @@
: ${KDBX_SEARCH:=~/.KeePass/*.kdbx}
PROG=$(basename "$0")
-KeePassXC=$(ls -f {/usr/local,/Applications}/KeePassXC.app/Contents/MacOS/KeePassXC 2>/dev/null | head -1)
+KeePassXC=$(ls -f {/usr/local,/opt/homebrew,/Applications}/KeePassXC.app/Contents/MacOS/KeePassXC 2>/dev/null | head -1)
daemon_main() {
declare -A DBs