Skip to content

fix(ci): include popup assets in extension release zip#444

Merged
jackwener merged 4 commits intojackwener:mainfrom
HzTTT:fix/extension-release-popup-assets
Mar 26, 2026
Merged

fix(ci): include popup assets in extension release zip#444
jackwener merged 4 commits intojackwener:mainfrom
HzTTT:fix/extension-release-popup-assets

Conversation

@HzTTT
Copy link
Copy Markdown
Contributor

@HzTTT HzTTT commented Mar 25, 2026

Summary

  • copy popup.html and popup.js into the packaged extension artifact
  • verify that files referenced by manifest.json exist before zipping

Problem

The v1.4.1 release asset opencli-extension.zip omits the popup files even though the manifest declares action.default_popup: popup.html. Loading the unpacked release in Chrome fails with:

The default_popup file in the manifest doesn't exist.

That leaves the daemon running but the extension unable to connect.

Verification

  • npm run build in extension/
  • packaged a local zip using the updated workflow steps
  • confirmed the resulting zip contains manifest.json, dist/background.js, popup.html, and popup.js

HzTTT and others added 4 commits March 26, 2026 03:44
Copy popup assets into the packaged Chrome extension zip and validate that manifest-referenced files exist before publishing the artifact.

Co-authored-by: Codex <noreply@openai.com>
…ckwener#446) (jackwener#452)

tsc does not preserve the +x bit when compiling, so after clean-dist
removes dist/ and tsc regenerates it, dist/main.js loses its executable
permission. This causes 'Permission denied' when users run 'npm run build'
in the installed directory.

Fix: read bin entries from package.json at the end of build-manifest and
chmod 0o755 them (skipped on Windows). Wrapped in try/catch so it never
breaks the build.

Closes jackwener#446
* fix yahoo-finance quote e2e invocation

* fix positional args in v2ex topic tests
@jackwener jackwener merged commit 0705d38 into jackwener:main Mar 26, 2026
jackwener added a commit to Xeron2000/opencli that referenced this pull request Mar 26, 2026
* fix(ci): include popup assets in extension release

Copy popup assets into the packaged Chrome extension zip and validate that manifest-referenced files exist before publishing the artifact.

Co-authored-by: Codex <noreply@openai.com>

* fix: restore executable permission on bin entries after tsc build (jackwener#446) (jackwener#452)

tsc does not preserve the +x bit when compiling, so after clean-dist
removes dist/ and tsc regenerates it, dist/main.js loses its executable
permission. This causes 'Permission denied' when users run 'npm run build'
in the installed directory.

Fix: read bin entries from package.json at the end of build-manifest and
chmod 0o755 them (skipped on Windows). Wrapped in try/catch so it never
breaks the build.

Closes jackwener#446

* fix: correct positional arg usage in tests (jackwener#449)

* fix yahoo-finance quote e2e invocation

* fix positional args in v2ex topic tests

* fix(ci): script extension release packaging

---------

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: jakevin <jakevingoo@gmail.com>
Co-authored-by: pi-dal <hi@pi-dal.com>
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.

3 participants