add macos build instructions
This commit is contained in:
17
README.md
17
README.md
@@ -10,11 +10,11 @@ Desktop app for securely storing sensitive files
|
|||||||
|
|
||||||
## 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,7 +23,16 @@ 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)
|
||||||
|
./build/dull
|
||||||
|
```
|
||||||
|
|
||||||
|
### MacOS
|
||||||
|
```
|
||||||
|
brew install qtbase cmake pkg-config botan
|
||||||
|
|
||||||
|
cmake -B build
|
||||||
cmake --build build -j $(nproc)
|
cmake --build build -j $(nproc)
|
||||||
./build/dull
|
./build/dull
|
||||||
```
|
```
|
||||||
@@ -32,7 +41,7 @@ cmake --build build -j $(nproc)
|
|||||||
```
|
```
|
||||||
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
|
||||||
```
|
```
|
||||||
@@ -90,7 +90,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
std::make_unique<Vault>(path.toStdString(), password.toStdString());
|
std::make_unique<Vault>(path.toStdString(), password.toStdString());
|
||||||
reload_fs_tree();
|
reload_fs_tree();
|
||||||
ui->statusbar->clearMessage();
|
ui->statusbar->clearMessage();
|
||||||
} catch (const Botan::Invalid_Authentication_Tag &e) {
|
} catch (const Botan::Exception &e) {
|
||||||
QMessageBox::critical(this, "Error", "Invalid password.");
|
QMessageBox::critical(this, "Error", "Invalid password.");
|
||||||
ui->statusbar->clearMessage();
|
ui->statusbar->clearMessage();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user