Public | Automated Build

Last pushed: 25 days ago
Short Description
A tool for creating ZIM files based on contents on a local filesystem
Full Description


zimwriterfs is a console tool to create ZIM
files from a locally-stored directory containing "self-sufficient"
HTML content (with pictures, javascript, and stylesheets). The result will
contain all the files of the local directory compressed and merged in
the ZIM file. Nothing more, nothing less. The generated file can be
opened with a ZIM reader; Kiwix is one example, but
there are others.

zimwriterfs works for now only on POSIX-compatible systems, you simply
need to compile it and run it. The software does not need a lot of
resources, but if you create a pretty big ZIM files, then it could
take a while to complete.

GNU/Linux compilation

To compile zimwriterfs, you need the GNU compiler with the GNU
autotools suite. You also need to have a few dependencies (dev
version) installed on the system:

On Debian, you can ensure these are installed with:

sudo apt-get install liblzma-dev libmagic-dev zlib1g-dev libgumbo-dev
cd ../zimlib && ./ && ./configure && make && cd ../zimwriterfs

Once the dependencies are in place, to build:

./configure CXXFLAGS=-I../zimlib/include LDFLAGS=-L../zimlib/src/.libs

OSX compilation

OSX builds are similar to Linux, except we use homebrew. Change to
../zimlib and build zimlib as instructed in the README there. Then
return here and:

brew install gumbo-parser
./configure CXXFLAGS="-I../zimlib/include -I/usr/local/include" LDFLAGS=-L../zimlib/src/.libs

Alternatively, there is a script included here to help you build both
static and dynamic binaries for zimwriterfs.
You must have a working and set up Kiwix repository (with dependencies ready).

  1. Install libmagic with brew (it's important)
    • ruby -e "$(curl -fsSL"
    • brew install libmagic
  2. Build kiwix:
    • KIWIX_ROOT=/Users/xxx/src/kiwix ./
Docker Pull Command
Source Repository

Comments (0)