Skip to content

fix(desktop): restore homepage and author so the deb builds - #194

Merged
quickbeard merged 1 commit into
mainfrom
desktop-deb-maintainer
Aug 11, 2026
Merged

quickbeard merged 1 commit into
mainfrom
desktop-deb-maintainer

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

bun run package:linux has failed since 2026-08-08:

⨯ Please specify project homepage, see https://www.electron.build/configuration#metadata
  Please specify author 'email' in the application package.json
  It is required to set Linux .deb package maintainer.

#171 deleted homepage and author from packages/desktop/package.json as part of the rebrand. That was right as far as it went — they pointed at https://opencode.ai and hello@opencode.ai, and a CoDev package naming upstream as its maintainer would be wrong. But electron-builder derives the Debian Maintainer field from author.email and refuses to build any fpm target without homepage, so deleting them outright took deb and rpm with it.

Nothing caught it: no workflow packages the desktop app, and AppImage, nsis and dmg don't use fpm, so the only broken targets are the two nobody builds in CI.

The fix

Both fields are back with fork values, matching what scripts/copy-metainfo.ts already writes into the AppStream metainfo — so the deb and the metainfo now agree, instead of one naming a developer the other doesn't:

Field Value Already in metainfo as
homepage https://github.com/quickbeard/codev-code <url type="homepage">
author CoDev <minhnh49@viettel.com.vn> <developer><name>CoDev</name>

Nothing else reads these — app id, product name and artifact names all come from electron-builder.config.ts.

Verification

Built the deb from this tree with no CLI overrides — exit 0 — and read the metadata back out of the package:

$ dpkg-deb -f dist/codev-code-desktop-linux-amd64.deb Package Version Maintainer Homepage
Package: codev-code
Version: 1.18.4~8
Maintainer: CoDev <minhnh49@viettel.com.vn>
Homepage: https://github.com/quickbeard/codev-code

The rpm target now gets past metadata and stops on a missing rpmbuild — a host dependency (apt-get install rpm), not a repo one. AppImage and the Windows nsis build were never affected.

DIVERGENCES.md row updated: it described the removal as consequence-free, which is what let this sit unnoticed.

No CHANGELOG.md entry — this is packaging metadata, and the fork ships no desktop build yet, so nothing user-facing changed.

🤖 Generated with Claude Code

#171 deleted `homepage` and `author` from packages/desktop/package.json as
part of the rebrand — correctly, since they pointed at opencode.ai and
hello@opencode.ai, and shipping a CoDev package that names upstream as its
maintainer would be wrong. Removing them outright broke `deb` and `rpm`
packaging, though: electron-builder derives the Debian Maintainer field from
`author.email` and refuses to build any fpm target without `homepage`, so
`bun run package:linux` has failed since 2026-08-08 with

  Please specify project homepage
  It is required to set Linux .deb package maintainer.

They are back, carrying fork values rather than upstream ones. Both match what
scripts/copy-metainfo.ts already writes into the AppStream metainfo, so the
deb and the metainfo now agree instead of one naming a developer the other
does not:

  homepage  https://github.com/quickbeard/codev-code   (= <url type="homepage">)
  author    CoDev <minhnh49@viettel.com.vn>            (= <developer><name>)

Nothing else consumes these fields — the app id, product name and artifact
names all come from electron-builder.config.ts.

Verified by building the deb from this tree with no CLI overrides: exit 0, and
`dpkg-deb -f` reports Package codev-code, Maintainer CoDev
<minhnh49@viettel.com.vn>, Homepage https://github.com/quickbeard/codev-code.
AppImage and the Windows nsis target were never affected — they do not use
fpm. The rpm target now gets past metadata and stops on a missing `rpmbuild`,
which is a host dependency (apt-get install rpm), not a repo one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 66e58e5 into main Aug 11, 2026
0 of 5 checks passed
@quickbeard
quickbeard deleted the desktop-deb-maintainer branch August 11, 2026 12:19
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.

1 participant