You must install the following software:
Clone the repository
Most of this is covered by the excellent Fossil documentation.
- Create a directory to store your Fossil repositories. Let's assume, you have created $HOME/fossil.
- Clone the repository:
fossil clone https://zettelstore.de/ $HOME/fossil/zettelstore.fossil.
- Create a working directory. Let's assume, you have created $HOME/zettelstore.
- Change into this directory:
- Open development:
fossil open $HOME/fossil/zettelstore.fossil.
(If you are not able to use Fossil, you could try the Git mirror https://github.com/zettelstore/zettelstore.)
The build tool
In directory tools there is a Go file called build.go. It automates most aspects, (hopefully) platform-independent.
The script is called as:
go run tools/build.go [-v] COMMAND
-v enables the verbose mode.
It outputs all commands called by the tool.
COMMAND is one of:
build: builds the software with correct version information and places it into a freshly created directory bin.
check: checks the current state of the working directory to be ready for release (or commit).
checkcommand and if this was successful, builds the software for various platforms, and creates ZIP files for each executable. Everything is placed in the directory releases.
clean: removes the directories bin and releases.
version: prints the current version information.
Therefore, the easiest way to build your own version of the Zettelstore software is to execute the command
go run tools/build.go build
In case of errors, please send the output of the verbose execution:
go run tools/build.go -v build