add macos build instructions
This commit is contained in:
19
README.md
19
README.md
@@ -5,16 +5,16 @@ Desktop app for securely storing sensitive files
|
|||||||
## Features
|
## Features
|
||||||
* **Pretty usable UI**
|
* **Pretty usable UI**
|
||||||
* **Overkill encryption:** XChaCha20-Poly1305 + Argon2id(m=1GB,t=8,p=4) key derivation
|
* **Overkill encryption:** XChaCha20-Poly1305 + Argon2id(m=1GB,t=8,p=4) key derivation
|
||||||
* **Cross-platform-ish:** Builds on Linux, Windows and macOS
|
* **Cross-platform:** Tested on Linux, Windows and macOS
|
||||||
* **Drag and Drop support**
|
* **Drag and Drop support**
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
### Debian/Ubuntu
|
### Debian
|
||||||
```
|
```
|
||||||
sudo apt update && sudo apt install build-essential qt6-base-dev libbotan-3-dev cmake
|
sudo apt update && sudo apt install build-essential qt6-base-dev libbotan-3-dev cmake
|
||||||
|
|
||||||
cmake -S . -B build
|
cmake -B build
|
||||||
cmake --build build -j $(nproc)
|
cmake --build build -j $(nproc)
|
||||||
./build/dull
|
./build/dull
|
||||||
```
|
```
|
||||||
@@ -23,16 +23,25 @@ cmake --build build -j $(nproc)
|
|||||||
```
|
```
|
||||||
sudo pacman -Syu base-devel cmake qt6-base botan
|
sudo pacman -Syu base-devel cmake qt6-base botan
|
||||||
|
|
||||||
cmake -S . -B build
|
cmake -B build
|
||||||
cmake --build build -j $(nproc)
|
cmake --build build -j $(nproc)
|
||||||
./build/dull
|
./build/dull
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
```
|
||||||
|
brew install qtbase cmake pkg-config botan
|
||||||
|
|
||||||
|
cmake -B build
|
||||||
|
cmake --build build -j $(sysctl -n hw.physicalcpu)
|
||||||
|
./build/dull
|
||||||
|
```
|
||||||
|
|
||||||
### Windows (MSYS2)
|
### Windows (MSYS2)
|
||||||
```
|
```
|
||||||
pacman -S --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-qt6-base mingw-w64-x86_64-qt6-tools mingw-w64-x86_64-libbotan
|
pacman -S --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-qt6-base mingw-w64-x86_64-qt6-tools mingw-w64-x86_64-libbotan
|
||||||
|
|
||||||
cmake -S . -B build -DBOTAN_INCLUDE_DIRS=/mingw64/include/botan-3 -DBOTAN_LIBRARIES=/mingw64/lib/libbotan-3.a
|
cmake -B build -DBOTAN_INCLUDE_DIRS=/mingw64/include/botan-3 -DBOTAN_LIBRARIES=/mingw64/lib/libbotan-3.a
|
||||||
cmake --build build -j $(nproc)
|
cmake --build build -j $(nproc)
|
||||||
./build/dull
|
./build/dull
|
||||||
```
|
```
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
#include <QTemporaryDir>
|
#include <QTemporaryDir>
|
||||||
#include <botan/auto_rng.h>
|
#include <botan/auto_rng.h>
|
||||||
|
#include <botan/exceptn.h>
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent)
|
MainWindow::MainWindow(QWidget *parent)
|
||||||
: QMainWindow(parent), ui(std::make_unique<Ui::MainWindow>()) {
|
: QMainWindow(parent), ui(std::make_unique<Ui::MainWindow>()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user