File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,15 @@ addons:
2020 - aria2
2121 - tree
2222 - python-requests
23+ - libreadline-dev
24+ - libconfig-dev
25+ - lua5.2
26+ - liblua5.2-dev
27+ - libevent-dev
28+ - libpython-dev
29+ - libjansson-dev
30+ - libssl1.0-dev
31+ - libgcrypt20-dev
2332
2433script : mkdir images && sudo PATH=./node_modules/.bin:$PATH ./builder --noninteractive
2534
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ INSTALL_PACKAGES=(
1919 rng-tools # for ap bridge
2020 tor=0.3.5.10-1 # TODO bring back to upstream
2121 openvpn
22- libreadline-dev libconfig-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev libssl-dev libgcrypt20-dev # telegram-cli
2322 shadowsocks-libev proxychains4 # socks5 proxy
2423 libpam-google-authenticator # two factor authentication
2524 jq # for parsing json / treehouses command
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33git clone https://github.com/vysheng/tg --recursive
4- cd tg
5- sed -i ' 116d' ./tgl/mtproto-utils.c
6- sed -i ' 105d' ./tgl/mtproto-utils.c
4+
5+ cd tg || exit 1
6+ sed -i ' 107d' ./tgl/mtproto-utils.c
7+ sed -i ' 101d' ./tgl/mtproto-utils.c
8+ sed -i " s/\-rdynamic //" Makefile.in
9+ sed -i " s/\-fPIC//" Makefile.in
10+ sed -i " s/\-Werror //" Makefile.in
711./configure
8- make
12+ CXX=arm-linux-gnueabihf-g++ make
913cp ./bin/telegram-cli /mnt/img_root/usr/local/bin/telegram-cli
1014mkdir -p /mnt/img_root/etc/telegram-cli
1115cp ./server.pub /mnt/img_root/etc/telegram-cli/server.pub
1216cd ../
13- rm -rf tg
17+ rm -rf tg
You can’t perform that action at this time.
0 commit comments