Skip to content

feat: add packaging script for Chrome/Firefox extension artifacts - #33

Merged
kalagar merged 5 commits into
masterfrom
copilot/feat-add-build-script
Jun 14, 2026
Merged

feat: add packaging script for Chrome/Firefox extension artifacts#33
kalagar merged 5 commits into
masterfrom
copilot/feat-add-build-script

Conversation

Copilot AI commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

What changed and why

Adds a packaging workflow so developers can generate versioned, installable browser-extension artifacts (Chrome/Edge .zip and Firefox .xpi) from the repo.

  • Added scripts/build.sh to stage a clean set of runtime extension files and produce versioned .zip/.xpi artifacts.
  • Added npm run package script for packaging-only (separate from compile-only npm run build).
  • npm run build remains compile-only (esbuild), keeping CI and local dev builds lightweight and cross-platform.
  • The packaging script checks for both python3 and zip availability with clear error messages before running.
  • Uses a portable mktemp invocation (mktemp -d "${TMPDIR:-/tmp}/glyphy.XXXXXXXXXX") that works on both Linux and macOS/BSD.
  • Documented prerequisites, commands, outputs, and installation steps in README.md.

Test plan

  • Loaded extension as unpacked in Chrome
  • Tested on at least 2–3 different sites
  • Icon fonts (Material Icons / Font Awesome) still render correctly
  • No console errors on affected pages
  • npm run build compiles JS sources successfully without invoking packaging
  • npm run package produces Chrome .zip and Firefox .xpi artifacts in ~/Downloads/glyphy/
  • Packaging script fails gracefully with clear messages if python3 or zip are missing

Related issues

@kalagar
kalagar marked this pull request as ready for review June 14, 2026 20:23
@kalagar
kalagar self-requested a review as a code owner 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
@kalagar
kalagar requested a review from Copilot June 14, 2026 20:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.sh to stage a clean set of runtime extension files and produce versioned .zip/.xpi artifacts.
  • Updated package.json scripts to run packaging as part of npm run build, and added npm run package for 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.

Comment thread scripts/build.sh Outdated
Comment thread scripts/build.sh
Comment thread package.json Outdated
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
kalagar merged commit 94a5c5c into master Jun 14, 2026
3 checks passed
@kalagar
kalagar deleted the copilot/feat-add-build-script branch June 14, 2026 20:35
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).
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