add precompiled deb
This commit is contained in:
parent
751e8ba5b4
commit
c6ff1e1387
12
README.md
12
README.md
|
@ -6,6 +6,17 @@ Go wrapper for [TDLib (Telegram Database Library)](https://github.com/tdlib/td)
|
||||||
|
|
||||||
### Ubuntu 18.04 / Debian 9
|
### 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
|
```bash
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
|
@ -27,7 +38,6 @@ make -j$(getconf _NPROCESSORS_ONLN) install
|
||||||
rm -rf ./../../tdlib-src
|
rm -rf ./../../tdlib-src
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
package client
|
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 darwin CFLAGS: -I/usr/local/include
|
||||||
// #cgo windows CFLAGS: -IC:/src/td -IC:/src/td/build
|
// #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 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
|
// #cgo windows LDFLAGS: -LC:/src/td/build/Debug -ltdjson
|
||||||
// #include <stdlib.h>
|
// #include <stdlib.h>
|
||||||
|
|
Loading…
Reference in a new issue