2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-22 18:37:09 +00:00
kotatogram-desktop/docs/building-linux.md

47 lines
1.7 KiB
Markdown
Raw Normal View History

## Build instructions for Linux using Docker
2016-09-12 14:45:41 +03:00
### 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][api_credentials].
### Clone source code
2016-09-12 14:45:41 +03:00
2021-01-04 08:48:01 +03:00
git clone --recursive https://github.com/kotatogram/kotatogram-desktop.git
2016-09-12 14:45:41 +03:00
### Prepare libraries
2016-09-12 14:45:41 +03:00
2021-01-04 08:48:01 +03:00
Go to the `kotatogram-desktop` directory and run
2016-09-12 14:45:41 +03:00
2021-01-04 08:48:01 +03:00
docker build -t kotatogram-desktop:centos_env Telegram/build/docker/centos_env/
2016-09-12 14:45:41 +03:00
### Building the project
2016-09-12 14:45:41 +03:00
2021-01-04 08:48:01 +03:00
Make sure that you're still in the `kotatogram-desktop` directory and run (using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
docker run --rm -it \
-v $PWD:/usr/src/tdesktop \
2021-01-04 08:48:01 +03:00
kotatogram-desktop: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 \
-D DESKTOP_APP_USE_PACKAGED=OFF \
2021-01-04 08:48:01 +03:00
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=ON
Or, to create a debug build, run (also using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
docker run --rm -it \
-v $PWD:/usr/src/tdesktop \
-e DEBUG=1 \
2021-01-04 08:48:01 +03:00
kotatogram-desktop: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 \
-D DESKTOP_APP_USE_PACKAGED=OFF \
2021-01-04 08:48:01 +03:00
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=ON
If you want to build with crash reporter, use `-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF` instead of `-D DESKTOP_APP_DISABLE_CRASH_REPORTS=ON`.
The built files will be in the `out` directory.
2016-09-12 14:45:41 +03:00
[api_credentials]: api_credentials.md