Introducing a new way to review your PRs.

Read the announcement

crmne / zapfast

ZapFast: a fast, native WhatsApp client in Rust and egui

View on GitHub

19 documents · Updated Nov 18, 2026

docs / updates-and-release-delivery

Updates and release delivery

ZapFast checks GitHub for newer releases, shows a clear update choice, and can install a verified update with a restart. Its release flow builds platform assets, signs the update manifest, publishes release notes and files, then starts platform package delivery. Release v0.21.3 uses this same path and provides direct links for Mac, Windows, Linux, AppImage, Flatpak, Debian/Ubuntu, and Fedora users. See Platform packaging and installation for the platform-specific package and install paths.

Update discovery

The update check asks GitHub for a newer ZapFast release when update checks are enabled and the app is online. The app limits checks to the updater's check interval, records an available version, and keeps the release page link for the user.

The update path uses the same proxy settings as the app's other network traffic. Package-managed installations do not use the built-in self-update path; they remain under their package manager's control.

References: src/app.rs• L6965-6991 src/…/worker.rs• L8417-8434 src/updates.rs• L1-5 src/settings.rs• L503-509

Update presentation

The update notice separates release information from update actions. It shows the current and available versions, links to release notes, reports download progress or errors, and offers a restart only after the update is ready.

Users control two separate choices:

  • Check for updates enables the periodic GitHub check.
  • Download updates automatically permits background download after the installation supports self-update.

The restart remains explicit. The update dialog warns that unsent work can be interrupted, and a package-managed installation directs the user to obtain the update from its package source instead.

References: src/…/update.rs• L8-17 src/…/update.rs• L55-177 src/…/settings.rs• L713-728 src/app.rs• L7031-7069

Verified update installation

The self-update flow treats a release as a staged asset, not as an immediately running program. It checks whether the current installation can self-update, downloads the selected release, verifies it against a trusted publisher key, and hands the prepared update to a helper.

The updater trusts the current publisher key and a next key during key rotation. This lets new releases add trust before the signing key changes. The source is the ZapFast GitHub repository, and the updater keeps legacy installation names so older installs can move to the current app.

When the user chooses Restart to update, the app hands the prepared update to the helper and exits. On the next start, the helper runs before normal command-line parsing or app state setup. It reports success or a restore error back to the new process, so a failed start can return to the prior version.

The following diagram shows the user update path from a release notice to a verified restart.

flowchart TD
    A[Periodic GitHub check] --> B[Available release]
    B --> C[Inspect installation]
    C --> D{Self-update supported?}
    D -- No --> E[Show package or GitHub download path]
    D -- Yes --> F[Download release asset]
    F --> G[Verify publisher signature]
    G --> H[Prepared update]
    H --> I[User chooses restart]
    I --> J[Helper applies update]
    J --> K[New process starts]
    K --> L{Start succeeds?}
    L -- Yes --> M[Continue with receipt]
    L -- No --> N[Restore previous version]

References: src/updates.rs• L14-43 src/…/worker.rs• L8371-8415 src/app.rs• L9583-9600 src/main.rs• L203-223 tests/update_flags.rs• L1-7

Release production

A release starts from a v* tag that already points to a commit on main and matches the version in the project metadata. The release workflow builds the supported binary targets, creates portable archives and native app packages, and records package attestations before publication.

The workflow then combines the build outputs into one GitHub release. Stable releases require committed release notes and become the latest release. Version tags with a suffix publish as draft prereleases with a short fallback note when needed.

Release v0.21.3 shows the role of the stable notes file. It describes the user-facing fixes, known call limits, full changelog, and direct download assets. Those links make the published GitHub release usable for both people who download an asset directly and later package jobs that consume the release outputs.

After a stable release is published, a reusable packaging workflow produces the package-manager and installation outputs that are not part of the initial cross-platform build. The child page covers those outputs and their install checks.

References: .github/…/release.yml• L16-32 .github/…/release.yml• L32-55 .github/…/release.yml• L300-357 .github/…/packaging.yml• L1-49 packaging/…/v0.21.3.md• L1-34

Signed release assets

Release security has two related trust layers. The update manifest is signed with the update signing key that installed ZapFast trusts, while platform-specific binaries or installers can also carry platform code signatures. The update signature lets the self-updater decide whether a release asset came from the publisher; platform signatures help the operating system trust the delivered program.

The release publisher signs the assembled asset directory before it creates the GitHub release. The public key shipped with the app must match the signing process, and the next public key must be present before a planned key change. Windows and macOS signing and notarization are release-package concerns; their detailed package behavior belongs in Platform packaging and installation.

References: .github/…/release.yml• L118-123 .github/…/release.yml• L240-258 .github/…/release.yml• L318-325 src/updates.rs• L20-28 assets/update-public-key.hex• L1 assets/update-public-key-next.hex• L1

Delivery packaging

The delivery layer maps a release version and target architecture to portable archives, native packages, app bundles and installer files. It also defines the downstream repositories that receive package recipes after a stable release.

The release assets provide the common source for both direct downloads and later package builds. Checksums and package metadata keep those paths tied to the same version, while install jobs check that the published outputs run in clean supported environments. Release v0.21.3 lists the resulting platform choices in its notes, including universal Mac, x86_64 and ARM Windows and Linux assets, plus Linux package formats. Detailed Linux, macOS and Windows formats, package-manager publication and installation tests are documented in Platform packaging and installation.

References: native-packages.yaml• L158-229 .github/…/release.yml• L125-185 .github/…/release.yml• L260-298 .github/…/packaging.yml• L90-155 packaging/…/v0.21.3.md• L3-5

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the updater's repository, app name, executable name and version source aligned with the release tag and package asset names.
  • When rotating the update signing key, publish the new public key to clients before signing releases with it.
  • Keep the signed asset directory and the release asset list aligned so every self-update target has a signed file.
  • Keep stable release notes available before the tag is pushed, because the stable publish job stops without them.
  • When changing release targets or asset names, update the package workflow inputs and the child packaging page together.
  • Preserve the early update-helper arguments and receipt contract across releases, because an older installed helper starts the new executable.

Important failure modes

TriggerConsequenceGuard
A tag does not point to main or does not match the project versionThe release build stops before assets are madeRelease-source ancestry and version checks
The update manifest is signed with an untrusted or missing keyClients reject the update or cannot verify itShipped publisher keys and the signing step
A self-update is requested for a package-managed installThe built-in updater cannot own the installationInstallation support inspection and package-manager guidance
Stable release notes are absent before taggingThe publish job fails instead of making a stable releaseCommitted packaging/…/<tag>.md
The new process fails after handoffThe update is restored and the old version reports the errorEarly helper interception and update receipt/error handling

Key files

FileWhy to read it
src/updates.rsDefines the GitHub update source, trusted keys and installation identity.
src/app.rsConnects periodic checks, user actions, download state and restart handoff.
src/…/update.rsShows the user-facing release, progress, error and restart states.
src/…/worker.rsRuns update checks, downloads and installation handoff outside the UI loop.
src/main.rsShows the early helper and receipt path used during restart.
.github/…/release.ymlDefines release validation, builds, signing, publication and stable packaging handoff.
packaging/…/v0.21.3.mdShows the stable release contract for user-facing notes and published download links.
native-packages.yamlMaps release assets to package targets and downstream package repositories.
.github/…/packaging.ymlRuns post-release package creation and clean installation checks.
docs/platform-packaging-and-installation.mdChild page for platform formats, package publication and installation behavior.