Skip to content

About

Unofficial Linux builds of AyuGram Desktop for FlatPark

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ayugram-release

Unofficial Linux x86_64 and aarch64 builds of AyuGram Desktop for FlatPark.

Upstream publishes Windows and macOS binaries but no Linux one. This repository builds the Linux binary on GitHub Actions and attaches it to a GitHub release. FlatPark's registry/com.ayugram.desktop/ pulls it in as extra-data, so the binary is downloaded straight from these releases and installed and updated through Flatpak.

How it is built

The recipe is upstream's own documented Linux build (docs/building-linux.md), run unattended in .github/workflows/build.yml:

  1. check: once a day, resolve upstream's latest release tag. If this repository already has a release for it, stop.
  2. image: generate the Rocky Linux 8 build environment from upstream's Telegram/build/docker/centos_env at that tag (DEBUG= LTO=, as for the public tdesktop image) and push it to GHCR, tagged with the git tree hash of that directory (-aarch64 suffix for the arm image). Each architecture is built natively, aarch64 on GitHub's ubuntu-24.04-arm runner. Upstream only builds the environment for x86_64, so the aarch64 one gets two changes: tlottie's hardcoded x86_64 Rust target points at the host, and rnnoise moves from v0.2 to the next commit (372f7b4, which fixes v0.2's NEON build). The next release reuses the image unless upstream has changed the environment, because a cold build takes hours.
  3. build: unpack upstream's AyuGramDesktop-<ver>-full.tar.gz source release (what distros build; it can carry submodule fixes made after tagging), run upstream's centos_env/build.sh in that image with upstream's documented API credentials and DESKTOP_APP_DISABLE_AUTOUPDATE=ON (Flatpak handles updates), then cmake --install and strip.
  4. release: once both architectures have built, publish the tarballs as v<ver>, then ping FlatPark's release hook so the Flatpak updates within minutes rather than at the next daily sweep.

Nothing is patched. The binary is the stock upstream source built with upstream's toolchain.

Artifacts

File Contents
ayugram-<ver>-<arch>.tar.zst (x86_64, aarch64) the cmake --install tree under usr/: bin/AyuGram (self-contained, statically linked Qt/FFmpeg/…), desktop file, icons, metainfo, D-Bus service
ayugram-<ver>-<arch>.tar.zst.sha256 checksum

Each release's notes record the upstream commit, the build-environment image digest and the workflow run.

Rebuilds

A release is never overwritten, because FlatPark pins each artifact's sha256. To rebuild a version, run the workflow manually with revision set (e.g. 2). That publishes v<ver>-2 next to the original release. With publish unchecked the run only builds, leaving the tarballs as workflow-run artifacts.

Licence

AyuGram Desktop is GPL-3.0 with the OpenSSL exception (see upstream LICENSE). The corresponding source for every binary is upstream's tagged source tree, which each release links, plus this build recipe.

About

Unofficial Linux builds of AyuGram Desktop for FlatPark

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors