Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.54 KB

building-linux.md

File metadata and controls

42 lines (28 loc) · 1.54 KB

🐧 Build instructions for Linux using Docker

📁 Prepare folder

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.

🔐 Obtain your API credentials

You will require api_id and api_hash to access the Telegram API servers.

To learn how to obtain them click here.

⌨️ Clone source code and prepare libraries

Install poetry, go to BuildPath and run

git clone --recursive https://github.com/fajox1/fagramdesktop.git
./tdesktop/Telegram/build/prepare/linux.sh

💻 Building the project

Go to BuildPath/tdesktop and run (using your api_id and api_hash)

docker run --rm -it \
    -v "$PWD:/usr/src/tdesktop" \
    tdesktop:centos_env \
    /usr/src/tdesktop/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/tdesktop" \
    -e CONFIG=Debug \
    tdesktop:centos_env \
    /usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
    -D TDESKTOP_API_ID=YOUR_API_ID \
    -D TDESKTOP_API_HASH=YOUR_API_HASH

📦 The result will be located in the out directory.