add precompiled deb

This commit is contained in:
Aleksandr Zelenin 2018-09-04 01:55:13 +03:00
parent 751e8ba5b4
commit c6ff1e1387
2 changed files with 12 additions and 3 deletions

View file

@ -6,6 +6,17 @@ Go wrapper for [TDLib (Telegram Database Library)](https://github.com/tdlib/td)
### Ubuntu 18.04 / Debian 9
#### Precompiled
```bash
curl "https://repo.zelenin.pw/gpg.key" | apt-key add -
echo "deb [arch=amd64] https://repo.zelenin.pw common contrib" > "/etc/apt/sources.list.d/tdlib.list"
apt-get update -y
apt-get install -y tdlib-dev
```
#### Manual compilation
```bash
apt-get update -y
apt-get install -y \
@ -27,7 +38,6 @@ make -j$(getconf _NPROCESSORS_ONLN) install
rm -rf ./../../tdlib-src
```
## Usage
### Client

View file

@ -1,9 +1,8 @@
package client
// #cgo linux CFLAGS: -I/usr/local/include
// #cgo linux LDFLAGS: -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
// #cgo darwin CFLAGS: -I/usr/local/include
// #cgo windows CFLAGS: -IC:/src/td -IC:/src/td/build
// #cgo linux LDFLAGS: -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
// #cgo darwin LDFLAGS: -L/usr/local/lib -L/usr/local/opt/openssl/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
// #cgo windows LDFLAGS: -LC:/src/td/build/Debug -ltdjson
// #include <stdlib.h>