Clarify README (TDLib 1.5.0, deploy)

This commit is contained in:
bodqhrohro 2019-12-23 00:31:49 +02:00
parent 083f207f7c
commit 081c1eaca9

View file

@ -8,12 +8,21 @@ The configuration file is compatible with Zhabogram 2.0, so you can easily copy
Prerequisites: Go links the binary against the `glibc` version present in the system where the build process happens, so it should be less or equal to the version of `glibc` in the system where Telegabber will run. Prerequisites: Go links the binary against the `glibc` version present in the system where the build process happens, so it should be less or equal to the version of `glibc` in the system where Telegabber will run.
* Build TDLib according to [TDLib build instructions](https://tdlib.github.io/td/build.html). * Build TDLib according to [TDLib build instructions](https://tdlib.github.io/td/build.html). The 1.5.0 version is needed currently; for switching to it, run this after `cd td`:
```
git fetch --all --tags --prune
git checkout tags/v1.5.0
```
* Install Go (tested with 1.13, but may work with earlier versions too). * Install Go (tested with 1.13, but may work with earlier versions too).
* Open the source dir in a new shell (to make sure that `$GOPATH` works) and run `make`. Dependencies will be installed automatically. * Open the source dir in a new shell (to make sure that `$GOPATH` works) and run `make`. Dependencies will be installed automatically.
After a successful build, you get a single binary to deploy on your server. After a successful build, you get a single binary to deploy on your server.
In the deploy directory, you need only three files:
* `telegabber` (the binary)
* `config.yml`
* `config_schema.json` (copy it from the repo)
### Installation ### ### Installation ###
First of all, you need to create component listener on your Jabber server. First of all, you need to create component listener on your Jabber server.