Skip to content

fix(release): build the update manifest from the artifacts the updater can use - #572

Merged
EVWorth merged 1 commit into
mainfrom
fix/updater-manifest
Sep 8, 2026
Merged

EVWorth merged 1 commit into
mainfrom
fix/updater-manifest

Conversation

@EVWorth

@EVWorth EVWorth commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Closes #566, #567, #568. First of the update-system work.

The mapping, run against real asset names

Taking the names v0.4.0 actually published and running them through the current step:

SQLPilot_0.4.0_x64.dmg              -> darwin-x86_64
SQLPilot_0.4.0_x64.app.tar.gz       -> SKIPPED (unknown platform)
SQLPilot_0.4.0_aarch64.dmg          -> darwin-aarch64
SQLPilot_0.4.0_aarch64.app.tar.gz   -> SKIPPED (unknown platform)

A .dmg is a distribution format; the macOS updater extracts a .app.tar.gz. The tarballs are built and signed, then dropped by the unknown-platform branch, which prints to the log and continues.

Correction to what I told you earlier: this has not shipped. v0.4.0's manifest was produced by tauri-action under an earlier workflow and points at the tarballs correctly. The hand-rolled step that replaced it would have broken macOS on the next release. Latent, not live — I said "users are getting a broken product right now" and that was wrong.

Three of the eight keys it emits — linux-deb, linux-rpm, windows-x86_64-nsis — are names the updater never looks up, and linux-aarch64 was mapped to an RPM the Linux updater can't apply either.

min_app_version is gone. It was set to the previous tag, and I could not confirm the updater reads the field at all — the only min_app_version documented in this repo belongs to the plugin manifest spec, which is unrelated. If it's ignored, the comment claiming otherwise was wrong; if it's honoured, anyone skipping a single release could never update again.

The change

Generation moves to scripts/build-update-manifest.sh, runnable and testable without cutting a release. It emits exactly the four keys the updater reads, each pointing at the one format that platform accepts, and refuses rather than shipping something partial:

  • a platform with no artifact fails the release, instead of quietly stranding every user on it
  • an artifact with no .sig, or an empty one, fails
  • two files matching one glob fails — choosing between them isn't a release script's decision
  • the JSON is assembled by python, then read back and checked, so a filename or signature containing a quote can't produce a manifest that parses as something else

The job no longer signs. The bundles were signed during the build, so it reads the .sig files already beside them. That keeps the signing key out of a job that talks to the releases API, and drops the npm ci it only needed for tauri signer.

Tests

Eleven, run in CI whenever scripts/** or .github/workflows/** change. The macOS cases fail against the previous mapping.

That matters here more than usual: the manifest is the one release artifact nothing downstream validates. A wrong entry doesn't fail a build — it fails on a user's machine, later, as an update that never arrives.

Still to come in this area

#569 (a failed install leaves the status bar spinning), #570 (guards in the button, and stale by the time the restart happens), #571 (rpm-ostree URL hardcodes x86_64), plus the existing #344/#346/#347/#353/#354.

🤖 Generated with Claude Code

…r can use

Closes #566, #567, #568.

Run against the asset names v0.4.0 actually published, the manifest step maps
macOS to the wrong file and discards the right one:

    SQLPilot_0.4.0_x64.dmg            -> darwin-x86_64
    SQLPilot_0.4.0_x64.app.tar.gz     -> SKIPPED (unknown platform)
    SQLPilot_0.4.0_aarch64.dmg        -> darwin-aarch64
    SQLPilot_0.4.0_aarch64.app.tar.gz -> SKIPPED (unknown platform)

A .dmg is a distribution format; the macOS updater extracts a .app.tar.gz.
The tarballs are built and signed, then dropped by the unknown-platform
branch, which prints to the log and continues.

This has not shipped. v0.4.0's manifest was produced by tauri-action under an
earlier workflow and points at the tarballs correctly. The hand-rolled step
that replaced it would have broken macOS on the next release.

Three of the eight keys it emits — linux-deb, linux-rpm, windows-x86_64-nsis
— are names the updater never looks up, and linux-aarch64 was mapped to an
RPM, which the Linux updater cannot apply either. Inert entries are worse
than absent ones: they read as though those formats are covered.

min_app_version is gone. It was set to the previous tag, and I could not
confirm the updater reads the field at all — the only min_app_version
documented in this repo belongs to the plugin manifest spec, which is
unrelated. If it is ignored, the comment claiming otherwise was wrong; if it
is honoured, anyone skipping a single release could never update again. A
compatibility floor belongs there only when there is a real incompatibility
to describe.

Generation moves to scripts/build-update-manifest.sh, which can be run and
tested without cutting a release. It emits exactly the four keys the updater
reads, each pointing at the one format that platform accepts, and refuses
rather than shipping something partial:

  - a platform with no artifact fails the release, instead of quietly
    stranding every user on it
  - an artifact with no .sig, or an empty one, fails
  - two files matching one glob fails, because choosing between them is not
    a decision a release script should make
  - the JSON is assembled by python and read back and checked, so a filename
    or signature containing a quote cannot produce a manifest that parses as
    something else

The job no longer signs. The bundles were signed during the build, so it
reads the .sig files already beside them — which keeps the signing key out of
a job that talks to the releases API, and removes the npm install it only
needed for `tauri signer`.

Eleven tests, run in CI whenever scripts or workflows change. The macOS ones
fail against the previous mapping, which is the point: the manifest is the
one release artifact nothing downstream validates, so a wrong entry does not
fail a build — it fails on a user's machine as an update that never arrives.

Co-Authored-By: Claude Opus 5 <[email protected]>
@EVWorth
EVWorth merged commit 5b530c4 into main Sep 8, 2026
10 checks passed
@EVWorth
EVWorth deleted the fix/updater-manifest branch September 8, 2026 03:11
EVWorth added a commit that referenced this pull request Sep 13, 2026
…line (#689)

Six tags, five distinct failures, all but one waiting in main since July —
the release pipeline was rewritten then and v0.4.0 was cut two days
before it landed, so v1.0.0 was the first release to run any of it. The
table says what each one was, because the next person to change this
workflow should know that changing it and not cutting a release is how
these accumulate.

The checklist also asked for a `linux-x86_64-rpm` key in latest.json,
which #572 deliberately removed: the updater reads one key per platform,
and the extra ones made the manifest look as though .deb and .rpm were
covered by the updater when nothing reads them.

Co-authored-by: Claude Opus 5 <[email protected]>
EVWorth added a commit that referenced this pull request Sep 13, 2026
The updater asks for `{os}-{arch}-{installer}` before `{os}-{arch}` —
tauri-plugin-updater 2.10.1, `Update::download_url` — where installer is
appimage, deb, rpm, app, msi or nsis. #572 removed those suffixed keys on
the reasoning that nothing reads them.

Something does. A 1.0.0 log from a package install shows

  Searching for updater target 'linux-x86_64-rpm' in release data
  Searching for updater target 'linux-x86_64' in release data

and then nothing, because the only key present pointed at an AppImage,
which is not a thing an rpm install can apply. Every .deb and .rpm user
was unable to update at all, which is the worst possible group to strand:
they are the ones a bad release reaches first.

All eleven keys now, each pointing at something the updater for that
format can actually install — the plugin runs `dpkg -i` and `rpm -U`
through pkexec. What stays true from #566 is the other half of the rule:
a key must point at an applicable artifact, so macOS keeps the
`.app.tar.gz` under both its keys and the `.dmg` under neither.

The manifest's own check now lists all eleven, so adding a platform to
the table without adding it there fails at release time rather than
becoming a gap someone finds months later.

A package install on an image-based system — rpm-ostree, or anything with
a read-only /usr — still cannot apply any of these. That one is the app's
to explain, and is not fixed here.

Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P0][bug] macOS auto-update is broken — the manifest points at .dmg files the updater cannot apply

1 participant