Repository navigation
fix(release): give a .deb and .rpm install something to update to - #691
Merged
Merged
Conversation
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.
The updater asks for
{os}-{arch}-{installer}before{os}-{arch}— tauri-plugin-updater 2.10.1,Update::download_url— where installer isappimage,deb,rpm,app,msiornsis. #572 removed those suffixed keys on the reasoning that nothing reads them.Something does. From a real 1.0.0 log on a package install:
…and then nothing, because the only key present pointed at an AppImage, which an rpm install cannot apply. Every .deb and .rpm user could not update at all — the worst group to strand, since they're the ones a bad release reaches first.
All eleven keys now, each pointing at something the updater for that format can install (the plugin shells out to
dpkg -iandrpm -Uvia pkexec). The half of #566 that stays true is that a key must point at an applicable artifact — so macOS keeps.app.tar.gzunder both its keys and.dmgunder neither.The manifest's self-check 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.
Still not fixed, and not fixable here: a package install on an image-based system (rpm-ostree, read-only
/usr) can't apply any of these. That's the app's to explain.16 tests in
test-build-update-manifest.shpass.🤖 Generated with Claude Code