···60606161- Inspect background/service-worker logs from `about:debugging` → **Inspect**.
6262- The UI scripts (`popup.js` and `options.js`) log to the DevTools console attached to their respective documents.
6363-- When packaging for distribution, zip the contents of the `extension/` directory.
6363+- When packaging for distribution, zip the contents of the `extension/` directory (see workflow below).
6464+6565+### Ship it on AMO
6666+6767+- Provide the bundled icons from `extension/icons/` (16, 32, 48 and 128 px SVGs).
6868+- Zip the `extension/` directory (e.g. `cd extension && zip -r ../frontpage-submitter.zip .`).
6969+- Upload the archive to <https://addons.mozilla.org/developers/> and fill in the listing copy/screenshots.
7070+- AMO reviewers expect a concise summary; you can adapt the “Features” bullets above.
7171+7272+### Self-distribution pipeline
7373+7474+This repository includes `.github/workflows/package-extension.yml` which builds (and optionally signs) the add-on using [`web-ext`](https://extensionworkshop.com/documentation/develop/web-ext-command-reference/).
7575+7676+1. Configure `AMO_JWT_ISSUER` and `AMO_JWT_SECRET` repository secrets with your AMO API credentials if you want automatic signing.
7777+ Without the secrets, the workflow still produces an unsigned ZIP you can download.
7878+2. Trigger the workflow manually (`Actions` → **package-extension** → **Run workflow**) or push changes to `main`.
7979+3. Download the artifacts:
8080+ - `frontpage-extension-unsigned` contains the ZIP that `web-ext build` generates.
8181+ - `frontpage-extension-signed` (only when secrets are present) contains the signed `.xpi` from AMO for self-hosting.
8282+8383+These artifacts can be hosted directly for self-distribution as described in the [Mozilla documentation](https://extensionworkshop.com/documentation/publish/self-distribution/).