.onedev-buildspec.yml | Loading last commit info... | |
src | ||
.clang-format | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
README.md | ||
config.mk | ||
ziit.1 |
README.md
Installation
Linux
Arch
Installation can be done using paru:
paru -S ziit
Debian and Ubuntu
# Install dependencies
sudo apt-get update
sudo apt-get install -y build-essential cmake libsodium-dev libprotobuf-c-dev libhowardhinnant-date-dev protobuf-c-compiler libconfuse-dev git
git clone https://github.com/likle/cargs.git
cmake -S cargs -B cargs/build
cmake --build cargs/build
sudo cmake --install cargs/build
# Install ziit
git clone https://dev.acosom.com/acosom/ziit/ziit-cli
sudo make -C ziit-cli install
macOS
On macOS with apple silicon chips the following lines need to be changed in the Makefile
first:
CFLAGS+=-Wall -Werror -MD -O3 -I/usr/include/protobuf-c -D_GNU_SOURCE -I/opt/homebrew/include
CXXFLAGS+=-Wall -Werror -MD -O3 -std=c++20 -I/opt/homebrew/include
LDFLAGS+=-O3 -L/opt/homebrew/lib
# Install dependencies
brew install cmake confuse protobuf-c libsodium howard-hinnant-date
git clone https://github.com/likle/cargs.git
cmake -S cargs -B cargs/build
cmake --build cargs/build
sudo cmake --install cargs/build
# install ziit
git clone https://dev.acosom.com/acosom/ziit/ziit-cli
sudo make -C ziit-cli install
Windows
Install WSL with debian or ubuntu and compile using the corresponding steps.
Dependencies
- cargs
- libconfuse
- protobuf-c
- date (howard hinnant)
- libsodium