diff --git a/amo-metadata.json b/amo-metadata.json new file mode 100644 index 0000000..3ae12df --- /dev/null +++ b/amo-metadata.json @@ -0,0 +1,6 @@ +{ + "categories": ["tabs"], + "version": { + "license": "MIT" + } +} diff --git a/docs/publishing-firefox.md b/docs/publishing-firefox.md index 4327f3c..3c72769 100644 --- a/docs/publishing-firefox.md +++ b/docs/publishing-firefox.md @@ -23,8 +23,14 @@ npm run lint:firefox # sanity check — expect 0 errors npm run submit:firefox # builds, packages, uploads to the LISTED channel ``` -`submit:firefox` runs `web-ext submit --channel=listed`, which uploads -`dist-firefox/` and creates/updates the add-on under your AMO account. +`submit:firefox` runs `web-ext sign --channel=listed`, which uploads +`dist-firefox/` and creates/updates the add-on under your AMO account. It also +passes `--amo-metadata=amo-metadata.json`, which supplies the per-version +**license** (`{ "version": { "license": "MIT" } }`). Listed versions are rejected +without one — the API returns `version.license: "This field, or custom_license, is +required for listed versions."` `"MIT"` is one of AMO's built-in license slugs and +matches `LICENSE.md`; use `version.custom_license` (an object) only for +non-standard terms. ## What AMO will ask for / require @@ -38,8 +44,9 @@ npm run submit:firefox # builds, packages, uploads to the LISTED channel { required: ["none"] }`. The listing still needs a short privacy note saying exactly that. A hosted privacy policy URL may be requested. - **Listing metadata** (entered on the site, not in the repo): summary, - full description, at least one screenshot, category, support email/URL, - and a license (the repo has none yet — pick one, e.g. MIT). + full description, at least one screenshot, category, and support email/URL. + The license is MIT (`LICENSE.md`) and is sent automatically via + `amo-metadata.json` — see the submit step above. - **Review.** Minified/bundled add-ons get human review; expect a delay and possible follow-up questions referencing the source upload. diff --git a/package.json b/package.json index daec91f..3eeae54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "history-graph", - "version": "0.0.2", + "version": "0.0.3", "description": "Visualize your browsing history as a graph.", "private": true, "type": "module", @@ -10,7 +10,7 @@ "package": "npm run build && node scripts/package.mjs", "lint:firefox": "npm run package && web-ext lint --source-dir=dist-firefox", "sign:firefox": "npm run package && web-ext sign --source-dir=dist-firefox --artifacts-dir=release --channel=unlisted", - "submit:firefox": "npm run package && web-ext submit --source-dir=dist-firefox --channel=listed", + "submit:firefox": "npm run package && web-ext sign --source-dir=dist-firefox --artifacts-dir=release --channel=listed --amo-metadata=amo-metadata.json", "dev": "vite build --watch --mode development", "typecheck": "tsc --noEmit", "test": "tsx tests/logic.test.ts && tsx tests/graph.test.ts && tsx tests/navEntries.test.ts",