GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(desktop): restore linux launcher identity by neriousy · Pull Request #31709 · anomalyco/opencode Conversation
|
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the packaging mechanics against the vendored app-builder-lib 26.15.2 source. The identity alignment (executableName / desktopName / StartupWMClass / icon basename) is correct and the compat launcher matches what electron-builder generates for prod (/opt/${sanitizedProductName}/${executableName}). No bugs found. One decision to confirm before merge (beta pins, inline) and two optional notes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| protocols: { name: "OpenCode", schemes: ["opencode"] }, | ||
| publish: { provider: "github", owner: "anomalyco", repo: "opencode", channel: "latest" }, | ||
| rpm: { packageName: "opencode" }, | ||
| deb: { fpm: [legacyDesktopEntryFpm] }, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The compat launcher is prod-only, but the regression also affected beta: the regressed executableName: "opencode-desktop" was shared across all channels, and the deb/rpm launcher filename falls back to executableName, so regressed beta packages also installed /usr/share/applications/opencode-desktop.desktop. Beta users who pinned during the regression window will lose their pins on upgrade.
This may well be an acceptable tradeoff (short window, small audience, and a beta compat file would need a different Exec — /opt/OpenCode Beta/ai.opencode.desktop.beta — while colliding with prod's compat file at the same path, a conflict the regressed packages already had). If it's intentional, worth a sentence in the PR description; otherwise beta needs its own legacy entry.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Resolved: maintainer decision is that launcher pin continuity is out of scope — no migration needed for beta (or anywhere). Not blocking merge. Optional follow-up: since pin migration is the compat launcher's only purpose, the opencode-desktop.desktop resource, the two fpm mappings, and the compat test could be dropped entirely to simplify the config — fine either way.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| icon: `resources/icons`, | ||
| category: "Development", | ||
| executableName: "opencode-desktop", | ||
| executableName: appId, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Optional hardening: the installed .desktop filename here comes from executableName only because linux.syncDesktopName defaults to false — the identity holds because executableName === appId and desktopName === appId + ".desktop" happen to agree. Setting linux.syncDesktopName: true derives the launcher filename from desktopName directly, which is the pattern the 26.15.x docs recommend, and app-builder-lib notes the default flips to true in v27 anyway. Same output today; just removes the implicit coupling. (Relatedly, the explicit StartupWMClass below is already the 26.15.x default when desktopName is set — harmless, fine to keep as documentation.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const module = await import(`./electron-builder.config.ts?channel=${channel.channel}`) | ||
| const config = module.default as Configuration | ||
|
|
||
| if (previous === undefined) delete process.env.OPENCODE_CHANNEL |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nit: the env restore runs after await import(...) without try/finally, so if the import throws, the mutated OPENCODE_CHANNEL leaks into subsequent tests. Only matters when the config module is already broken, but a finally would keep those failures isolated. Applies to both tests in this file.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Linux desktop app icon missing after Electron packaging update
There was an error while loading. Please reload this page.