Skip to content

Commit

Permalink
fix for compiling on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
darthnoward committed Aug 22, 2020
1 parent 0c3a77d commit 6ed09ad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ addons:
- aria2
- tree
- python-requests
- libreadline-dev
- libconfig-dev
- lua5.2
- liblua5.2-dev
- libevent-dev
- libpython-dev
- libjansson-dev
- libssl1.0-dev
- libgcrypt20-dev

script: mkdir images && sudo PATH=./node_modules/.bin:$PATH ./builder --noninteractive

Expand Down
1 change: 0 additions & 1 deletion scripts.d/16_pkg_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ INSTALL_PACKAGES=(
rng-tools # for ap bridge
tor=0.3.5.10-1 #TODO bring back to upstream
openvpn
libreadline-dev libconfig-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev libssl-dev libgcrypt20-dev # telegram-cli
shadowsocks-libev proxychains4 # socks5 proxy
libpam-google-authenticator # two factor authentication
jq # for parsing json / treehouses command
Expand Down
14 changes: 9 additions & 5 deletions scripts.d/20_telegram_cli.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#! /bin/bash

git clone https://github.com/vysheng/tg --recursive
cd tg
sed -i '116d' ./tgl/mtproto-utils.c
sed -i '105d' ./tgl/mtproto-utils.c

cd tg || exit 1
sed -i '107d' ./tgl/mtproto-utils.c
sed -i '101d' ./tgl/mtproto-utils.c
sed -i "s/\-rdynamic //" Makefile.in
sed -i "s/\-fPIC//" Makefile.in
sed -i "s/\-Werror //" Makefile.in
./configure
make
CXX=arm-linux-gnueabihf-g++ make
cp ./bin/telegram-cli /mnt/img_root/usr/local/bin/telegram-cli
mkdir -p /mnt/img_root/etc/telegram-cli
cp ./server.pub /mnt/img_root/etc/telegram-cli/server.pub
cd ../
rm -rf tg
rm -rf tg

0 comments on commit 6ed09ad

Please sign in to comment.