Part 3 ended with a wheel that works great on my machine. This post is about getting it onto everyone else's, and about the moment AppImageHub showed me that "works on my machine" also covered my CI.
Five packages, on purpose
Linux users install software in very different ways, so DotMorph ships five:
| Package | For | Uses the system's Qt? |
|---|---|---|
| pipx (PyPI) | anyone with Python 3.10+ | no, pulls PySide6-Essentials |
| AppImage | "just give me one file" | no, everything is inside |
| .deb | Debian, Ubuntu, Kali | yes (python3-pyside6.*) |
| Arch package | Arch and friends, today | yes (pyside6) |
| AUR | yay -S dotmorph |
yes |
There's no Flatpak, and that's deliberate. DotMorph runs ffmpeg, LibreOffice and friends from your system, adds itself to your file manager, registers a global hotkey, and installs systemd user units for watched folders. A Flatpak sandbox blocks every one of those, so it would only be a lesser copy of the AppImage.
One tag, every package
Pushing a vX.Y.Z tag runs .github/workflows/release.yml:
- Tests on Python 3.10, 3.12 and 3.13, including the real QML wheel offscreen.
-
Build and smoke-test every package: the wheel and sdist (
twine check), the.deb(it must run--version), the AppImage, and an Arch package built withmakepkgin anarchlinuxcontainer, checked withnamcap, installed and run. -
Checksums and signatures: one
SHA256SUMSfile and a detached.ascGPG signature for every file. The workflow verifies all of them before going further. - Publish: the GitHub Release (notes taken from the CHANGELOG), then PyPI, then the AUR.
PyPI uses trusted publishing. There's no API token in the repository at all: PyPI trusts this specific workflow file in this specific repository, through a GitHub environment that only release tags can use. The uploads also carry PEP 740 attestations.
The tags themselves are signed (git tag -s), so GitHub shows them as Verified. A manual run of the workflow is a dry run: everything except the publishing steps. The whole thing takes about four minutes.
All of the packaging logic lives in one script, packaging/build.py (assets, deb, appimage, aur, sums…), so CI and my laptop run exactly the same code.
The AppImage, three bugs in
The AppImage is built with python-appimage: a relocatable Python, with pip installing PySide6 and DotMorph into it. Here's what that taught me.
Bug 1: cannot open 6.10
PySide6 6.10+ wheels need glibc 2.34. PySide6 6.9 needs 2.28, which means Ubuntu 20.04, Debian 11 and RHEL 8. So I pinned PySide6-Essentials<6.10, and the build failed with cannot open 6.10.
python-appimage passes requirements through a shell, unquoted, so <6.10 became "read input from a file named 6.10". The fix is an operator with no shell meaning:
# manylinux_2_28 wheels: runs on glibc 2.28+. Written with ~= (6.9.x): python-appimage passes
# requirements through the shell unquoted, so "<" or ">" would become redirections.
APPIMAGE_PYSIDE = "PySide6-Essentials~=6.9.0"
Bug 2: Settings-x86_64.AppImage
The first release produced a file called Settings-x86_64.AppImage. python-appimage names the image after the last Name= line in the desktop file, and the last one belonged to the launcher's "Settings" action. The desktop file inside the AppImage now keeps only the main entry.
Bug 3: 109 MB for a file converter
DotMorph's own code is under 1 MB. The AppImage was 109 MB. I unpacked it and measured: 272 MB of the 357 MB inside was PySide6, and a lot of it is developer tooling that a running app never touches. lupdate alone was 53 MB, plus Qt Designer, qmlls, test and compiler libraries, unused Quick Controls styles, type stubs and pip.
python-appimage can leave the AppDir unpacked (--no-packaging), so the build now trims it before packing it with appimagetool:
APPIMAGE_TRIM = (
"pip", "pip-*.dist-info",
*(f"PySide6/{tool}" for tool in (
"lupdate", "lrelease", "linguist", "assistant", "designer", "qmlls", "qmlformat", ...)),
"PySide6/*.pyi", "PySide6/include", "PySide6/typesystems", "PySide6/glue",
*(f"PySide6/Qt/lib/libQt6{lib}.so*" for lib in (
"Designer", "DesignerComponents", "WaylandCompositor", "QmlCompiler", "Help", ...)),
...
)
Deleting files from a bundle is how you ship a broken app, so there's a guard in two places. APPIMAGE_KEEP lists what the app does load (QtQuick, Shapes, Effects, Particles, Dialogs, the Basic and Fusion styles, the xcb and wayland platform plugins, ICU…), and the build fails if trimming removed any of it. A unit test also parses every import in the QML files and checks that no trim pattern matches those modules.
Result: 109 MB → 73 MB, with the same features.
"Works on my machine", including CI
I submitted the AppImage to AppImageHub, the community catalog that app stores like AppImagePool read from. Their bot downloads the AppImage, starts it on the oldest supported Ubuntu LTS with no network, and expects a window within 30 seconds. It replied:
ERROR: The application exited within 11 seconds instead of showing a window
The log said libxkbcommon-x11.so.0: cannot open shared object file, and Qt added that it needs libxcb-cursor0 for its X11 plugin.
My smoke tests had all passed, for two reasons. My desktop has those libraries because it has a full desktop with Qt apps. And my CI runner had them because I had installed them myself in the workflow so that the smoke test could run. The smoke test also used Qt's offscreen platform, which never loads the X11 plugin at all.
So I reproduced their machine instead of guessing. I used a clean ubuntu:22.04 container with only an X server and the libraries the AppImage spec expects every host to provide (libX11, libxcb, libGL, fontconfig…), and no network:
ImportError: libxkbcommon.so.0: cannot open shared object file: No such file or directory
Comparing what Qt's xcb plugin needs with what that machine has gave a list of 16 libraries: libxkbcommon, libxkbcommon-x11, libxcb-cursor, -icccm, -image, -keysyms, -render-util and nine more XCB extensions. None of them are in PySide6, and none are on the "host provides it" list.
Bundling them raises one more question: built where? Copying them from a modern distro could quietly raise the glibc requirement and break the "glibc 2.28" promise. The build takes them from AlmaLinux 8, the base of manylinux_2_28, and the newest glibc symbol any of them uses is 2.17:
def fetch_x11_libs(dest: Path) -> list[Path]:
"""Copy APPIMAGE_X11_LIBS from an AlmaLinux 8 container into dest (next to Qt's libraries,
which find them through their $ORIGIN runpath)."""
script = (
"set -e; dnf -q -y install epel-release >/dev/null; "
f"dnf -q -y install {' '.join(X11_LIBS_PACKAGES)} >/dev/null; "
f"for l in {' '.join(APPIMAGE_X11_LIBS)}; do cp -L /usr/lib64/$l /out/; done; "
...
)
No patchelf was needed. libQt6XcbQpa has a $ORIGIN runpath and links every one of those libraries directly, so placing them next to it is enough. The total cost is 1.1 MB.
The test that keeps it fixed
The important part was making sure this can't come back silently. build.py appimage-test now does what AppImageHub does. It builds the clean Ubuntu 22.04 image, starts the extracted AppImage offline under Xvfb on the real X11 plugin, and requires a DotMorph window after 15 seconds. The release workflow runs it on every build. I checked it in both directions: the old 2.0.1 AppImage fails it with the same error, and 2.0.2 passes.
That test hung on its first run, for an unexpected reason. Inside the container, xvfb-run ended up as PID 1. It waits for a signal from Xvfb saying the server is ready, and PID 1 doesn't get default signal handling, so it waited forever. docker run --init puts a tiny init in front of it. The test also has a hard time limit now, so a hang fails the build instead of stalling it.
AppImageHub's bot re-tested 2.0.2: Test passed, with a screenshot of the wheel. Once the screenshot was approved, the same bot merged the pull request, and DotMorph went into the catalog.
Updates without re-downloading 73 MB
AppImages can carry update information. DotMorph's says "look at the latest GitHub release for a file matching DotMorph-*x86_64.AppImage.zsync":
APPIMAGE_UPDATE_INFO = (f"gh-releases-zsync|{REPO.replace('/', '|')}|latest"
"|DotMorph-*x86_64.AppImage.zsync")
appimagetool -u embeds it and writes the .zsync file next to the image, and the release ships, sums and signs it. AppImageUpdate and AppImageLauncher then download only the blocks that changed.
This feature hung CI too, of course. On the runner the AppImage runs with APPIMAGE_EXTRACT_AND_RUN=1, because there's no FUSE there. With that variable set, the runtime ignores --appimage-updateinformation and simply starts the app, so the step never finished. Now that check runs without the variable, and every smoke-test step has a time limit.
Catalogs: one source of truth
Packages are only half of it; people also need to find them. Besides PyPI, DotMorph is listed in two catalogs, and neither one needed a separate upload:
- The AppImage catalog: the entry is a single file containing the GitHub repository URL. Their bot picks the newest release's AppImage on its own, so new versions need no new pull request.
-
OpenDesktop (the same listing also appears on AppImageHub.com): its file manager has an "Add URL" button that copies a file from a link. The three packages there come straight from the signed GitHub release, so OpenDesktop serves exactly the bytes that
SHA256SUMSdescribes.
Builds are uploaded to exactly one place, the GitHub release, and the workflow does that, not me.
The .deb and Arch packages use your Qt
The .deb is built with plain dpkg-deb and depends on the distribution's PySide6 and QML modules, version 6.6 or newer. On a release that's too old, apt refuses to install it, which beats installing something that crashes on start. The Arch package is built from the same PKGBUILD the AUR gets, inside an Arch container, so the AUR recipe is tested on every release before anyone runs it.
CI that doesn't randomly fail
Most of my red CI runs had nothing to do with my code:
-
apt mirrors stall. Every apt call now retries with 30-second timeouts (
Acquire::Retries,Acquire::http::Timeout). - man-db rebuilds its index after every install, sometimes for minutes, so CI disables that.
- Every job and every slow step has a
timeout-minutes, so a stuck run fails in minutes instead of six hours later. - Timing-sensitive tests (watch folders, the daemon, cancel) wait for real readiness signals instead of fixed sleeps, so they pass with every CPU core saturated.
Verify what you download
Every release file has a checksum and a signature:
gpg --import dotmorph-signing-key.asc # attached to every release
gpg --fingerprint kareem209907@gmail.com # must be 0F04 6781 3146 DE68 272E DC82 145D 3459 56DE 18D2
gpg --verify SHA256SUMS.asc SHA256SUMS # the checksums really come from the release
sha256sum --ignore-missing -c SHA256SUMS # your files match them
The fingerprint is also printed in the README and in SECURITY.md, so you can compare it against a second source.
Lessons
- Test on the machine your users have, not the one you have. A clean container is cheap, and "my CI is green" proved nothing about a fresh install.
- Every "remove files" step needs a "these must survive" check.
- Put a time limit on everything in CI. Both of my hangs would have been 6-hour stalls without one.
- Make releases boring. One script, one tag, a dry-run mode, and every artifact verified before anything is published.
That's how 2.0 shipped. Since then, DotMorph 2.2 learned to transcribe, read scans, fit files under a size limit, play sounds and speak nine languages, and the same pipeline shipped it with one signed tag. Part 5 starts that story.
DotMorph is free and open source:
- GitHub: kareem2099/DotMorph
- Project page: dotsuite.dev/en/product/dotmorph
-
Install:
pipx install 'dotmorph[gui]', or the AppImage,.deband Arch package from the releases - Also on: AppImageHub · OpenDesktop

Top comments (2)
The line that should be printed on a wall is "test on the machine your users have, not the one you have" — and the AppImageHub story proves it in the most painful way possible. Your smoke tests were green, your CI was green, and the app still died within 11 seconds on a real machine because the offscreen platform never loads the X11 plugin, so libxkbcommon-x11 was never exercised. Reproducing their machine in a clean ubuntu:22.04 container instead of guessing is exactly the right move, and the detail that the fix came from AlmaLinux 8 so the newest glibc symbol is only 2.17 shows how deep the compatibility thinking goes. I also loved the three AppImage bugs as a set: a shell turning <6.10 into a file redirect, the image being named after the last Name= line in the desktop file, and the 109 MB bundle hiding 53 MB of lupdate alone — plus the discipline of APPIMAGE_KEEP, because trimming a bundle without a must-survive check is how you ship a broken app. And "make releases boring" is the right conclusion: one signed tag, one script, a dry-run mode, checksums and signatures verified before anything publishes. One question: with five formats to maintain, which one causes the most support load in practice — do most users reach for the AppImage or pipx, and has any format ever made you consider dropping it?
Thank you, this is a really careful read. You picked out exactly the parts that cost me the most time, and that "must survive" check is the line I'd defend hardest.
To your question, with real numbers from the GitHub release assets (all versions so far): the AppImage leads with 77 downloads, then the .deb with 31, the Arch package with 17 and the wheel from GitHub with 13. PyPI reports about 250 downloads last month, but that count includes mirrors and CI bots, so I read it as "pipx is used", not as a user count.
Support load has been surprisingly low: the only issue anyone has opened so far is a feature request (transcription, which shipped in 2.2). No packaging bug reports yet. That's mostly because the AppImage absorbed all the pain before users saw it: three bugs, the clean-machine test and the glibc work. Once a format is tested the way users run it, it stays quiet.
Have I considered dropping one? Not the five that ship. The one I dropped was Flatpak, before it ever existed: DotMorph runs your system's ffmpeg and LibreOffice, adds itself to your file manager, registers a global hotkey and installs systemd user units, and a sandbox blocks all of that. It would have been a sixth format that's worse than the AppImage, and that's the kind of maintenance cost I'd rather not take on.