feat: add packaging script for Chrome/Firefox extension artifacts - #33
Merged
Conversation
kalagar
marked this pull request as ready for review
June 14, 2026 20:23
Copilot
AI
changed the title
[WIP] Add build script to package installable extension for all supported browsers
feat: add build script to package installable extension for all supported browsers
Jun 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a packaging workflow so developers can generate versioned, installable browser-extension artifacts (Chrome/Edge .zip and Firefox .xpi) from the repo, integrating this into npm scripts and documenting usage in the README.
Changes:
- Added
scripts/build.shto stage a clean set of runtime extension files and produce versioned.zip/.xpiartifacts. - Updated
package.jsonscripts to run packaging as part ofnpm run build, and addednpm run packagefor packaging-only. - Documented prerequisites, commands, outputs, and installation steps in
README.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| scripts/build.sh | New packaging script that builds versioned Chrome/Firefox artifacts from an explicit file allowlist. |
| package.json | Wires packaging into npm run build and adds a packaging-only alias. |
| README.md | Adds build/package instructions, prerequisites, output locations, and install steps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot
AI
changed the title
feat: add build script to package installable extension for all supported browsers
feat: add packaging script for Chrome/Firefox extension artifacts
Jun 14, 2026
kalagar
added a commit
that referenced
this pull request
Jun 14, 2026
🤖 I have created a release *beep* *boop* --- ## [1.4.0](v1.3.2...v1.4.0) (2026-06-14) ### Features * add packaging script for Chrome/Firefox extension artifacts ([#33](#33)) ([94a5c5c](94a5c5c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Adds a packaging workflow so developers can generate versioned, installable browser-extension artifacts (Chrome/Edge
.zipand Firefox.xpi) from the repo.scripts/build.shto stage a clean set of runtime extension files and produce versioned.zip/.xpiartifacts.npm run packagescript for packaging-only (separate from compile-onlynpm run build).npm run buildremains compile-only (esbuild), keeping CI and local dev builds lightweight and cross-platform.python3andzipavailability with clear error messages before running.mktempinvocation (mktemp -d "${TMPDIR:-/tmp}/glyphy.XXXXXXXXXX") that works on both Linux and macOS/BSD.README.md.Test plan
npm run buildcompiles JS sources successfully without invoking packagingnpm run packageproduces Chrome.zipand Firefox.xpiartifacts in~/Downloads/glyphy/python3orzipare missingRelated issues