Instructions for agents working in this repository.
Unofficial Linux AppImage and Flatpak builds of Wire Desktop, produced from a
fork of wireapp/wire-desktop.
Upstream removed Linux support; this fork rebuilds the Electron wrapper from
upstream release tags and publishes the AppImage plus a signed, GitHub-hosted
Flatpak repository.
- Repository:
nichu42/wire-desktop-linux(public fork; keep the fork relationship intact). - Default branch:
linux— project files, workflows and tooling. dev: pristine upstream mirror. Never build from it directly.- Upstream build source: newest tag matching
windows/*. - Current release:
gh release list --repo nichu42/wire-desktop-linux --limit 1. Do not hardcode version numbers in these docs. - AppImage is built as a single-file artifact; the Flatpak is published from a
signed OSTree repository on GitHub Pages (with a single-file
.flatpakbundle attached to Releases). Flathub is intentionally out of scope. Keep packaging-specific decisions intools/andflatpak/instead of assuming one format.
- Build from upstream release tags, not
devHEAD. - The only upstream source changes are
patches/01-linux-runtime.patch(every build, applied withgit apply --3way) and, for the Flatpak,patches/02-flatpak-runtime.patch. If the AppImage patch fails, continue unpatched and say so in the release notes; never delete the tests to make it apply. The Flatpak fails closed when either patch does not apply. - Never publish without that format's full gate. AppImage: upstream tests,
artifact assertions, runtime smoke on Ubuntu 26.04 and 22.04, and
draft-asset verification; releases are created as drafts and only published
after verification. Flatpak: offline source build,
assert-flatpakassertions, manifest/AppStream lint, and a signed-repo install plus smoke test. The Flatpak has no draft step and does not run the upstream suite. - The
buildjob is read-only:contents: read,persist-credentials: false, noGH_TOKENin its environment. Onlypublishgets write permissions. Never give the build job a write token. - Pin every third-party action to a full commit SHA. Dependabot updates them.
Do not use
ubuntu-latestfor the artifact build; use explicit LTS labels. - Do not commit override lockfiles or pin app dependencies in this repository. Resolve
Electron and electron-builder at build time with
yarn up; never edit the lockfile withjq, add aresolutionsblock, or useCOREPACK_ENABLE_STRICT/immutable-install environment hacks. - Keep
@electron/fusesat upstream's1.8.x. The 2.xexportsmap breaks upstream'smoduleResolution: nodetypecheck. - Do not put
--no-sandboxin the desktop entry. electron-builder 26.18 adds it by default whentoolsets.appimageis unset;appImage.executableArgs: []andbuildVersionintools/electron-builder.config.cjsmust stay. - Do not use Playwright for the runtime smoke test. Production fuses disable
--inspect;tools/smoke-test.shlaunches the extracted AppImage and checks for a window plushttps://app.wire.comin the app log. - Keep Gear Lever compatibility:
.upd_infomust containgh-releases-zsync|nichu42|wire-desktop-linux|latest|Wire-*x86_64.AppImage.zsyncand every release must include the matching.zsyncasset. - Keep
PINNEDin.github/workflows/runner-freshness.ymlin sync with therunnerinput default inbuild-linux.yml. - No personal data in releases or
build-info.json. Wire logs can contain member data: never commit them or paste them outside the session. - The Flatpak is a source build: apply both runtime patches, fail closed if either does not apply, and do not package a Flatpak without the assertions and smoke test. The AppImage keeps its best-effort patch behavior.
- The Flatpak follows the same Electron,
electron-builderand@electron/fusesresolution policy as the AppImage (tools/resolve-deps.sh).tools/flatpak-prepare.shupdates the working lockfile withyarn up --mode=update-lockfileand generates offline sources withflatpak-node-generatorbeforeflatpak-builderrunsyarn install --immutableoffline; do not commit the generatedflatpak/package.jsonorflatpak/yarn.lock. - The Flatpak never passes
--no-sandbox; it uses zypak from the Electron2 BaseApp and the same fuses as the AppImage. Camera access goes through the XDG Camera portal withWebRtcPipeWireCamera; do not add--device=all. Do not add AppArmor/AppImage update metadata to the Flatpak. - The Flatpak signing key is available only to the publish job. Build jobs are
read-only and must never receive
FLATPAK_GPG_PRIVATE_KEY. Publish only from the protectedlinuxbranch or a tag. - Keep the GitHub Pages repository URL and Flatpak app ID stable. A change breaks installed remotes; the app ID is fixed.
- The Flatpak dependency check is advisory. It reports out-of-support
dependencies in a
flatpak-dependencyissue and must never gate the build or publish. Electron andelectron-builderfollow the samesupported/latestpolicy as the AppImage viatools/resolve-deps.sh.
| Path | Purpose |
|---|---|
README.md |
User-facing install/update/verification docs |
SECURITY.md |
Private reporting, scope, attestation verification |
install.sh |
Non-Gear-Lever install/update helper |
patches/01-linux-runtime.patch |
Restores the Linux runtime behavior upstream removed |
patches/02-flatpak-runtime.patch |
Hides the Flatpak-incompatible autostart toggle |
flatpak/ |
Manifest template, desktop entry, metainfo, zypak wrapper, Flatpak electron-builder config |
tools/resolve-deps.sh |
Resolves Electron, electron-builder and @electron/fuses policy versions |
tools/flatpak-resolve.sh |
Resolves the newest compatible Flathub runtime and active LTS Node SDK extension |
tools/flatpak-prepare.sh |
Resolves the tag/deps/config, updates lockfile, generates offline sources, renders manifest |
tools/flatpak-render-manifest.mjs |
Fills the Flatpak manifest template |
tools/flatpak-repo.sh |
Exports/signs the OSTree repo and builds a bundle |
tools/flatpak-keygen.sh |
Generates the Flatpak signing key and prints the secrets |
tools/flatpak-dependencies.sh |
Reports out-of-support Flatpak dependencies |
tools/assert-flatpak.mjs |
Asserts the installed /app tree (asar, fuses, metadata, size) |
tools/smoke-test-flatpak.sh |
flatpak run runtime smoke test (Xvfb) |
docs/flatpak.md |
Flatpak build, signing and repository operations |
docs/flatpak-plan.md |
Flatpak distribution decision record |
tools/stamp-config.mjs |
Writes production electron/wire.json + package.json |
tools/electron-builder.config.cjs |
AppImage packaging, files, desktop entry, fuses hook |
tools/after-pack.cjs |
Flips the production Electron fuses |
tools/assert-artifact.mjs |
Asserts asar config, fuses, desktop, update info, zsync, size |
tools/smoke-test.sh |
Direct-launch runtime smoke test (Xvfb) |
tools/embed-updateinfo.mjs |
Writes Gear Lever update info into .upd_info in place |
tools/release-notes.sh |
Release notes from build-info.json + changelog |
resources/ |
AppStream metainfo + AppArmor profile |
.github/workflows/build-linux.yml |
Resolve → build → 22.04 smoke → publish |
.github/workflows/flatpak.yml |
Flatpak resolve → build/test → sign → Pages |
.github/workflows/runner-freshness.yml |
Weekly runner migration check + canary |
.github/workflows/lint.yml |
actionlint, zizmor, shellcheck, node --check |
.github/workflows/scorecard.yml |
OpenSSF Scorecard |
.github/workflows/keepalive.yml |
Monthly commit against the 60-day schedule disable |
.github/dependabot.yml |
GitHub Actions updates |
build-linux.yml triggers every 6 hours (05:17, 11:17, 17:17, 23:17 UTC) and on
workflow_dispatch with inputs:
tag— upstream tag; empty means latestwindows/*.electron—supported(default),latest,upstream.builder—latest(default),upstream.force— rebuild as a new revision.runner— defaultubuntu-26.04;ubuntu-latestis for canaries.publish— defaulttrue;falseskips the publish job and forces a build even when a release already exists.
Jobs: resolve → build → smoke-2204 → publish, plus report-failure and
report-success. A canary (publish=false) runs the full gate but creates no
release; a failure creates a Canary build failure issue.
flatpak.yml triggers every 6 hours (00:37, 06:37, 12:37, 18:37 UTC), on workflow_dispatch
(tag, electron, builder, force, publish, runner) and pushes to the Flatpak files. Jobs:
resolve → build (offline source build, test-signed repo, smoke, manifest/
AppStream lint) → publish (artifact-to-release check, production GPG signing,
signed repo and single-file bundle install/smoke, attestation, Pages, a check of
the deployed repository, and attaching the .flatpak bundle + .sha256 to the
matching GitHub release). The scheduled/dispatched dependency-check
job reports Electron, Freedesktop runtime, BaseApp and Node SDK support and
opens or closes a flatpak-dependency issue; it never gates the build.
A skipped resolve means the published tag, Electron version and fingerprint are
current. Push runs do not publish; a scheduled failure opens a flatpak-failure
issue and a successful scheduled run closes it.
Runner pins:
- artifact
resolve/build:ubuntu-26.04(green canary); - Flatpak
resolve/build/publish:ubuntu-24.04; publish, reporting, lint, Scorecard, keepalive:ubuntu-24.04;- compatibility smoke:
ubuntu-22.04.
Runner freshness runs weekly on ubuntu-latest. If latest is newer than
PINNED, it opens a runner-freshness issue and dispatches a no-publish
canary on the new image. If the pinned image is ahead, it does nothing; when
they match, it closes stale issues.
Useful commands:
# canary on the moving latest image, no release
gh workflow run build-linux.yml --repo nichu42/wire-desktop-linux \
-f runner=ubuntu-latest -f publish=false
# force a revision release
gh workflow run build-linux.yml --repo nichu42/wire-desktop-linux \
-f tag=windows/3.46.5382 -f force=true
# Flatpak build/test only (no Pages publish)
gh workflow run flatpak.yml --repo nichu42/wire-desktop-linux \
-f tag=windows/3.46.5382 -f publish=false
gh run list --repo nichu42/wire-desktop-linux --limit 5
gh run watch <run-id> --repo nichu42/wire-desktop-linux --compact
gh issue list --repo nichu42/wire-desktop-linux --label build-failure
gh issue list --repo nichu42/wire-desktop-linux --label flatpak-failure
gh issue list --repo nichu42/wire-desktop-linux --label flatpak-dependency- App version = upstream tag suffix (
3.46.5382). - Tags:
v<version>for the first build,v<version>-rNfor rebuilds caused by Electron/tooling/fingerprint changes. - Assets: AppImage,
.zsync,wire-desktop.png,wire-desktop.metainfo.xml,apparmor.profile,SHA256SUMS,build-info.json, plusWire-<version>-x86_64.flatpakandWire-<version>-x86_64.flatpak.sha256(attached byflatpak.ymlafter its full gate and carried over on AppImage-only-rNrebuilds). build-info.json(schema 1) records upstream tag/commit, upstream and shipped Electron, builder, fuses, revision, fingerprint, runtime patch status, lockfile hash, policy, EOL flag, build time and run id (plus Flatpak-specific runtime, BaseApp, Node, config, bundle SHA-256 and GPG fingerprint on Pages).- Publish flow: draft → attest provenance → download assets back and verify → publish. Never upload directly to a published release before verification.
- The signed OSTree Flatpak repository is published to
https://nichu42.github.io/wire-desktop-linux/flatpak/(repo/,wire.flatpakrepo,build-info.jsonand the rendered manifest); the single-file.flatpakbundle (+.sha256) is attached to the matching GitHub release with--repo-urlpointing at that Pages repository. AppImageSHA256SUMSand Gear Lever metadata remain unchanged. - Verify a release:
sha256sum -c SHA256SUMS
gh attestation verify Wire-*.AppImage --repo nichu42/wire-desktop-linuxDo not prune releases; they are kept for rollback and version pinning.
- Electron: read the upstream pin from the tag. Use the newest patch of
that major; if the upstream major is older than the newest two supported
majors, use the oldest supported major.
electron=latestforces the newest stable major;electron=upstreamreproduces the pin. - electron-builder: npm
latest; retry with upstream's version if packaging fails. - @electron/fuses: upstream pin (
1.8.x). - App dependencies: upstream's tested set; never auto-bump them.
- Apply overrides with
yarn up electron@<v> electron-builder@<v> @electron/fuses@<v>, thenyarn install --immutable. For the AppImage,postinstall: yarn configuremust run; it fetches the production config and icons. The Flatpak runsyarn up --mode=update-lockfileduringtools/flatpak-prepare.sh, generates offline sources withflatpak-node-generator, replacespostinstallwith the pinned offline config sources, and runsyarn install --immutableoffline.- Flatpak runtime/SDK:
tools/flatpak-resolve.shresolves the newest compatible Freedesktop runtime +Electron2.BaseAppbranch and newest active LTS Node SDK extension on Flathub (RUNTIME_VERSION/NODE_VERSIONenv or--runtime/--nodecan override).
- Flatpak runtime/SDK:
The build runs in CI; a full local build needs Node 22 (.node-version), the
committed Yarn 3.3.1, Xvfb, x11-utils, zsync, binutils and shellcheck.
The Flatpak build additionally needs Flatpak, flatpak-builder,
flatpak-node-generator, elfutils, dbus-x11, jq and patch.
node .yarn/releases/yarn-3.3.1.cjs install
./node_modules/.bin/tsc --noEmit # typecheck
xvfb-run -a yarn test # upstream suite
node tools/stamp-config.mjs # BUILD_NUMBER required
yarn build:prepare
RELEASE_REVISION= yarn electron-builder --linux AppImage --x64 \
--config tools/electron-builder.config.cjs
# Flatpak (writes generated sources and a rendered manifest)
tools/flatpak-prepare.sh windows/<version>
flatpak-builder --user --install-deps-from=flathub \
--force-clean --disable-rofiles-fuse \
flatpak/build flatpak/io.github.nichu42.wire-desktop-linux.ymlThe CI build clones upstream into src/, applies the patch, copies tools/
and resources/ into it, then stamps/builds/packages. A local full build must
replicate that layout. The Flatpak build applies patches/01 and
patches/02 inside flatpak-builder and fails closed if either fails.
Manual acceptance after a build: launch, log in, send a message, place one call
and try screen sharing, verify wire://, and confirm the tray/version. The
AppImage's old and new clients share ~/.config/Wire; the Flatpak uses
~/.var/app/io.github.nichu42.wire-desktop-linux/. Only one instance should run
at a time.
Gear Lever is the primary AppImage update path. The AppImage embeds the update source;
.zsync SHA-1 comparison drives detection. Users add the AppImage once and use
Gear Lever's Update button. install.sh is the fallback for systems without
Gear Lever; do not use both for the same install.
install.sh supports --version, --dry-run, --uninstall and --apparmor.
--apparmor is the only sudo path and must remain explicit.
- New upstream release: nothing; the schedule builds it. If a release is
wrong, dispatch with
force=trueand a new revision is produced. - Runtime patch fails: the build continues unpatched and the release notes
warn. Refresh the patch by checking out the target tag and re-applying the
curated runtime revert for
electron/src(menu, tray, autostart, shortcuts, portable data, MDM, plus the two test files). Validate withgit apply --3way --checkagainst a clean tag checkout. - Patch/types fail after an upstream change: fix the patch, not the tests;
keep the restored
IS_LINUXplatform field andappImagePathtest data. - Startup hidden: the Linux menu's
Start Hidden in Traytoggle storesstartHiddenininit.json;--hidden/--startupstill force it. Deferelectron-window-staterestore until the firstshow, becausemaximize()on a hidden window makes Electron show it. - Runner migration: update the
runnerdefault and fixedruns-onentries, updatePINNED, run a canary on the new image, then push. The weekly check will flag the next migration. - Packaging regression: run the canary; check
assert-artifactoutput and the smoke log. Keepfilesexcludes root-relative: a!**/configglob once stripped@wireapp/commons/lib/configand broke startup. Never add a positive**/*tofiles: it packsnode_modules/electron(316 MiB of dev-only Electron).typescriptis a production dependency of@wireapp/protocol-messagingand therefore ships legitimately. - Build failed on schedule: check the
build-failureissue/run log, fix the patch or tooling, push; a successful scheduled run closes the issue. - Gear Lever metadata: if detection breaks, verify
.upd_info, the.zsyncSHA-1, the asset glob and/releases/latest. - Flatpak new upstream release: the
flatpak.ymlschedule resolves it and regenerates the lockfile overrides, config pin and offline sources each run; manual intervention is only needed if patches or packaging templates break (test locally withtools/flatpak-prepare.sh). - Flatpak patch fails: the build fails closed; refresh
patches/01and/orpatches/02against the target tag. Never ship a Flatpak without both. - Flatpak repository/signing: run
tools/flatpak-keygen.shonce, add theFLATPAK_GPG_PRIVATE_KEYandFLATPAK_GPG_KEY_IDsecrets, enable Pages with GitHub Actions as the source. Keep the key and Pages URL stable. - Flatpak managed config: do not add
/etc/wireto--filesystem;/etcis reserved and subpaths do not work. Managed deployments can opt in with--filesystem=host-etc:ro; the app reads/run/host/etc/wire/managed.json. This exposes all of host/etcread-only, so use it only on managed devices. - Flatpak Pages too large: prune with
flatpak build-update-repo --prune --prune-depth=2; if the 1 GB Pages limit is still exceeded, move the OSTree objects to an object store and update the.flatpakrepoURL. - Flatpak build failed on schedule: check the
flatpak-failureissue/run log; push a fix; a successful scheduled run closes it. - Flatpak dependency drift: the
dependency-checkjob reports an Electron pin outside npm's supported window, an EOL or outdated Freedesktop runtime (e.g. ifElectron2.BaseApphas not branched yet), or an EOL Node SDK extension. Checktools/flatpak-resolve.shor document an exception.
Public fork; default branch linux; Actions enabled with read-only default;
workflows build-linux, flatpak, lint, scorecard, keepalive,
runner-freshness enabled; upstream workflows removed from linux. Issues
enabled; private vulnerability reporting, secret scanning and push protection
enabled. GitHub Pages uses GitHub Actions as the source; the Flatpak site is
https://nichu42.github.io/wire-desktop-linux/flatpak/. The automatic
GITHUB_TOKEN is used for normal operations. The Flatpak publish job
additionally uses FLATPAK_GPG_PRIVATE_KEY and FLATPAK_GPG_KEY_ID; no
personal access tokens are used.
Scorecard publishes SARIF to the code-scanning page. Those alerts are repository-health checks, not a scan of upstream source. The by-design ones (branch protection, token permissions, SAST, fuzzing, code review, CII badge, repo-age Maintained) and the upstream dependency advisories are dismissed as "won't fix" with a reason; keep the Scorecard workflow running. Revisit dismissed alerts when the release model changes, and do not blanket-disable SARIF upload.
Upstream project: https://github.com/wireapp/wire-desktop · Removal context: wireapp#9747 · Gear Lever: https://github.com/mijorus/gearlever