Choose a folder for the future build, for example /home/user/TBuild. It will be named BuildPath in the rest of this document. All commands will be launched from Terminal.
You will require api_id and api_hash to access the Telegram API servers. To learn how to obtain them click here.
Install poetry, go to BuildPath and run
git clone --recursive https://github.com/kukuruzka165/materialgram.git
./materialgram/Telegram/build/prepare/linux.sh
Go to BuildPath/materialgram and run (using your api_id and api_hash)
docker run --rm -it \
-v "$PWD:/usr/src/materialgram" \
materialgram:centos_env \
/usr/src/materialgram/Telegram/build/docker/centos_env/build.sh \
-D TDESKTOP_API_ID=YOUR_API_ID \
-D TDESKTOP_API_HASH=YOUR_API_HASH
Or, to create a debug build, run (also using your api_id and api_hash)
docker run --rm -it \
-v "$PWD:/usr/src/materialgram" \
-e CONFIG=Debug \
materialgram:centos_env \
/usr/src/materialgram/Telegram/build/docker/centos_env/build.sh \
-D TDESKTOP_API_ID=YOUR_API_ID \
-D TDESKTOP_API_HASH=YOUR_API_HASH
The built files will be in the out
directory.