Skip to content

Commit

Permalink
Provide a single script that does everything
Browse files Browse the repository at this point in the history
Also, hardcode the tdlib version, because only one works
  • Loading branch information
BenWiederhake committed Dec 8, 2021
1 parent f7829a4 commit 21fcb8a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build_and_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -e

JOBS="$(nproc || echo 1)"

rm -rf build
mkdir build
pushd build
git clone https://github.com/tdlib/td.git
pushd td
git checkout 7d41d9eaa58a6e0927806283252dc9e74eda5512 # v1.7.9 wasn't properly tagged
mkdir build
pushd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j "${JOBS}"
make install DESTDIR=destdir
popd
popd
cmake -DTd_DIR="$(realpath .)"/td/build/destdir/usr/local/lib/cmake/Td/ -DNoVoip=True ..
make -j "${JOBS}"
echo "Now calling sudo make install"
sudo make install
popd

0 comments on commit 21fcb8a

Please sign in to comment.