Skip to content

fix(extension): fail packaging when manifest entry files are missing#470

Merged
jackwener merged 1 commit intojackwener:mainfrom
zzf2333:codex/fix-issue-469-extension-package-integrity
Mar 26, 2026
Merged

fix(extension): fail packaging when manifest entry files are missing#470
jackwener merged 1 commit intojackwener:mainfrom
zzf2333:codex/fix-issue-469-extension-package-integrity

Conversation

@zzf2333
Copy link
Copy Markdown
Contributor

@zzf2333 zzf2333 commented Mar 26, 2026

Summary

  • add collectManifestEntrypoints() for direct manifest file references (including action.default_popup)
  • keep html dependency collection for secondary popup assets (like popup.js)
  • add a post-copy integrity check to fail package:release when manifest-referenced files are missing in output

Why

v1.4.1 release zip can miss popup assets while manifest.json still references popup.html, causing extension install failure:

The default_popup file in the manifest doesn't exist

This change prevents shipping a broken extension package again.

Verification

  • cd extension && npm run package:release -- --out ../tmp-ext-verify
  • verified packaged output contains manifest.json, dist/background.js, popup.html, and popup.js

Closes #469

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.

[Bug]: extension v1.4.1 default_popup file in the manifest doesn't exist

2 participants