kotatoimg/README.md

1.2 KiB

kotatoimg

A docker image made by copying the Linux workflow that helps in building Kotatogram Desktop, tested on an arm64/aarch64 system. Also read Kotatogram's linux build instructions

Creating the Image

Clone and go to kotatoimg, then run

docker build -t kotatoimg .

Building Kotatogram Desktop

Go to the root of kotatogram-desktop's repository and run

docker run --rm -v $(pwd):/ktg kotatoimg \
    bash Telegram/build/docker/centos_env/build.sh \
    -DDESKTOP_APP_USE_PACKAGED_LAZY=ON \
    -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON

If you want a debug build, run

docker run --rm -e DEBUG=1 -v $(pwd):/ktg kotatoimg \
    bash Telegram/build/docker/centos_env/build.sh \
    -DDESKTOP_APP_USE_PACKAGED_LAZY=ON \
    -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON

Creating an AppImage

Since Telegram likes to compile everything, we'll need to create an appimage. While in kotatogram-desktop, run

docker run --rm -v $(pwd):/ktg kotatoimg build-appimage

Likewise, if you want a debug build then run

docker run --rm -e DEBUG=1 -v $(pwd):/ktg kotatoimg build-appimage