Repository navigation
Conversation
balabommablock-cpu
left a comment
There was a problem hiding this comment.
Tested: update-coordinator.test.ts 12/12 on this branch; with only update-coordinator.ts put back to main, 1 fails. The mapping looks right.
One thing a Linux user will still hit with default settings. I ran selectRelease with this branch against the shape of today's live /api/downloads (stable v1.0.2 has no linux_* assets, beta v1.0.3b7 has both):
| Installed | Stable only | Page shows | Update offered |
|---|---|---|---|
| 1.0.1 | on (default) | up to date, latest v1.0.2 |
none |
| 1.0.1 | off | v1.0.3b7 |
v1.0.3b7 |
| 1.0.3b5 | on (default) | up to date, latest v1.0.2 |
none |
| 1.0.3b5 | off | v1.0.3b7 |
v1.0.3b7 |
So until stable carries a Linux build, the default still says "up to date", and in the first row it says so next to a newer version number. Not a blocker for this PR, but a small follow-up would make it honest: when the channel head is newer but has no asset for this platform, return something like "No Linux build on Stable yet. Turn off Stable only to get beta builds" instead of up-to-date.
|
Added in
The row where stable |
balabommablock-cpu
left a comment
There was a problem hiding this comment.
Re-tested cd250336: update-coordinator.test.ts 13/13 pass. The "up to date next to a newer version" case now gets an explanation. Thanks for adding it.
One copy thing from a scratch check: channelHeadNeedsPlatformAsset also returns true when "Stable only" is already off and the beta head has no Linux asset (and when platform is null). The panel then still says "turn off Stable only", which the user already did.
A small fix could be two strings, picked by stableOnly:
- on: "No Linux build on Stable yet. Turn off Stable only to get beta builds."
- off: "The newest release has no package for this platform yet. Try again later."
Not a blocker. Happy to re-check if you change it.
Summary
platformAssetKey()returnednullfor Linux, soselectRelease()always short-circuited and the desktop shell reported "already up to date" even when the manifest had a Linux package. The manifest already publisheslinux_x64/linux_armassets (beta channel, e.g.Octop-desktop-linux-amd64-1.0.3b7.deb).Refs #3087 — this covers the client-side detection gap. The issue's remaining points are manifest data / product decisions (see Notes).
Changes
desktop/src/main/update/update-coordinator.tsPlatformKeyandChannelRelease.assetsnow includelinux_x64/linux_arm.platformAssetKey("linux", arch)mapsarm64 → linux_arm, everything else →linux_x64.desktop/src/main/update/update-coordinator.test.tsnullassertion; unknown platforms still returnnull.selectReleasetest pickslinux_x64from a Linux release and returns the.debasset.CHANGELOG.md: Unreleased → 修复 entry.The installer already accepts
deb(SUPPORTED_KINDS), so no installer change was needed.Verification
tsc --noEmitwas not run locally (desktop dependencies are not installed in this checkout); the change only widens a string union and adds branches.Notes