Repository navigation
Add materialgram (io.github.kukuruzka165.materialgram) - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
io.github.kukuruzka165.materialgram — Packaging notes
1. Overview
materialgram is a Telegram Desktop fork with Material Design and extra features (GPL-3.0-or-later). This is a community package, not affiliated with or endorsed by the developer (stated in the metainfo). Upstream publishes a self-contained Linux binary per GitHub release.
2. Relationship to the Flathub build
materialgram is already published on Flathub, but that build is compiled from source against an older GNOME runtime,
org.gnome.Platform//49. This package instead targets the latest freedesktop runtime,org.freedesktop.Platform//25.08, and packages upstream's official prebuilt Linux release as extra-data rather than compiling from source. Both track the same upstream version (6.7.7.1); the difference is the newer, leaner runtime base and the extra-data build approach.3. Packaging strategy
Packaged as extra-data, in line with FlatPark's extra-data-first policy. Upstream already ships a single self-contained binary (Qt, FFmpeg, OpenSSL, etc. statically linked), so there is nothing to compile.
/appstays read-only.4. Files
flatpark.ymlio.github.kukuruzka165.materialgram.ymlapply_extra.sh/app/bin/apply_extra; unpacks the release tarball into/app/extramaterialgram-wrapper/app/bin/materialgram(thecommand)resolve-update.sh{version, releaseDate, sources[]}JSON*.desktop/*.metainfo.xml/*.png5. Manifest highlights
org.freedesktop.Platform//25.08; no dependency on any desktop-environment runtime.--share=ipc,--share=network,--socket=wayland,--socket=fallback-x11,--socket=pulseaudio,--device=dri; desktop integration via--talk-namefor Notifications, the KDE StatusNotifierWatcher (tray), and ScreenSaver (idle/lock),--system-talk-name=org.freedesktop.login1, plus--own-name=org.mpris.MediaPlayer2.materialgram.*(media-key control). File access is limited to--filesystem=xdg-downloadfor the default save location;--filesystem=homeis intentionally not granted (the app uses portals otherwise).materialgram(buildsystem: simple) that installs the wrapper, install hook, and desktop files, and declares one extra-data source —materialgram.tar.zst(the upstreamv<tag>Linux release, x86_64).# BEGIN/END MANAGED EXTRA-DATAmarkers and is rewritten by FlatPark at build time fromresolve-update.shoutput (URL and the sha256/size pins); manual edits there are overwritten.6. Install-time behavior (
apply_extra.sh)Runs offline. Using the
tar+zstdprovided by the runtime, it extracts onlyusr/bin/materialgramfrom the release tarball, moves it to the fixed path/app/extra/materialgram(referenced by the wrapper), removes the archive, and marks the binary executable. The desktop file, icon, and AppStream metainfo are shipped by the manifest at build time (extra-data is fetched too late for anything Flatpak must export).7. Launch wrapper (
materialgram-wrapper)The upstream binary is self-contained, so the wrapper simply
execs/app/extra/materialgram "$@". Flatpak already redirects$HOMEinto the per-app data dir, so the messenger's data stays inside the sandbox with no redirection needed, and Qt selects Wayland or xcb on its own from the sockets granted in finish-args.8. Update mechanism (
resolve-update.sh){ "version": "6.7.7.1", "releaseDate": "YYYY-MM-DD", "sources": [ {"filename": "materialgram.tar.zst", "url": "..."} ] }releases/latestAPI forkukuruzka165/materialgram, takestag_name(stripped of thevprefix) andpublished_at, and selects the lonematerialgram-v<tag>.tar.zstasset (the macOS/win64.zipassets are filtered out). HonorsGITHUB_TOKENif present for rate limits.9. Policy and metadata
flatpark.yml > policy:proprietary: false,extra_data_first: true,dangerous_permissions: []. The screenshot is hotlinked from the upstream repo and does not enter R2. The desktop entry registers thetg/tonsiteURL scheme handlers and a "Quit" action.content_ratingis marked for social chat/audio/contacts.