-
Homebrew: Install Homebrew from brew.sh.
-
Install dependencies: Open the terminal and run the following commands:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || { echo "Homebrew installation failed"; exit 1; } brew install qt@5 openssl libsodium argon2 ninja brew link --force qt@5
-
Clone the repository:
git clone https://github.com/brammittendorff/opencryptui.git cd opencryptui -
Set environment variables:
export ARGON2_LIB_DIR=$(brew --prefix argon2)/lib export ARGON2_INCLUDE_DIR=$(brew --prefix argon2)/include export SODIUM_LIB_DIR=$(brew --prefix libsodium)/lib export SODIUM_INCLUDE_DIR=$(brew --prefix libsodium)/include export Qt5_DIR=$(brew --prefix qt@5)/lib/cmake/Qt5 export CMAKE_PREFIX_PATH=$(brew --prefix qt@5) export OPENSSL_ROOT_DIR=$(brew --prefix openssl) export OPENSSL_INCLUDE_DIR=$(brew --prefix openssl)/include export OPENSSL_LIBRARIES=$(brew --prefix openssl)/lib
-
Build the project:
cmake -S . -B build -G Ninja cmake --build build --config Release -
Run the application:
cd build ./OpenCryptUI -
Run the tests:
cd build ./OpenCryptUITest -
Run tests with minimal logging (CI mode):
cd build env CI=true QT_LOGGING_RULES="*.debug=false;*.info=false;*.warning=false" QT_MESSAGE_PATTERN="" ./OpenCryptUITest -silent -v1