Repository navigation
fix(release): build the update manifest from the artifacts the updater can use - #572
Merged
Merged
Conversation
…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]>
This was referenced Sep 8, 2026
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]>
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.
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:
A
.dmgis 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-actionunder 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, andlinux-aarch64was mapped to an RPM the Linux updater can't apply either.min_app_versionis gone. It was set to the previous tag, and I could not confirm the updater reads the field at all — the onlymin_app_versiondocumented 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:.sig, or an empty one, failsThe job no longer signs. The bundles were signed during the build, so it reads the
.sigfiles already beside them. That keeps the signing key out of a job that talks to the releases API, and drops thenpm ciit only needed fortauri 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