chore(release): set add-on ID and update URL for self-hosting at add-ons.jordanwages.com

This commit is contained in:
Jordan Wages 2025-08-22 02:32:25 -05:00
commit 4708a97829
3 changed files with 6 additions and 7 deletions

View file

@ -133,7 +133,7 @@ This project is not affiliated with archive.org or aria2. Use responsibly and re
## Release Workflow ## Release Workflow
- Stable ID: set a permanent add-on ID in `manifest.json` at `applications.gecko.id` (replace the `@example` value with your ID). If you self-host updates, set `applications.gecko.update_url` to your `updates.json` URL. - Stable ID: using `applications.gecko.id = "archive-org-link-grabber@jordanwages.com"`. If you self-host updates, `applications.gecko.update_url` points to `https://add-ons.jordanwages.com/archive-org-link-grabber/updates.json`.
- Prepare (version bump + sync): - Prepare (version bump + sync):
- Patch: `npm run release:prepare:patch` - Patch: `npm run release:prepare:patch`
- Minor: `npm run release:prepare:minor` - Minor: `npm run release:prepare:minor`
@ -144,6 +144,6 @@ This project is not affiliated with archive.org or aria2. Use responsibly and re
- Set environment secrets locally (do not commit): `AMO_JWT_ISSUER=... AMO_JWT_SECRET=...` - Set environment secrets locally (do not commit): `AMO_JWT_ISSUER=... AMO_JWT_SECRET=...`
- Run: `npm run release:sign` - Run: `npm run release:sign`
- Artifacts land in `releases/<version>/` - Artifacts land in `releases/<version>/`
- Self-hosted updates: copy `releases/updates.example.json` to `releases/updates.json` and update with the new version and `update_link` pointing to your hosted `.xpi`. - Self-hosted updates: `releases/updates.json` is tracked; update with the new version and `update_link` like `https://add-ons.jordanwages.com/archive-org-link-grabber/releases/<version>/archive-org-link-grabber-<version>.xpi`.
Notes: Keep AMO secrets local. CI is optional. You can tag releases with `git tag vX.Y.Z` and push tags if desired. Notes: Keep AMO secrets local. CI is optional. You can tag releases with `git tag vX.Y.Z` and push tags if desired.

View file

@ -5,8 +5,8 @@
"description": "Filter and export archive.org /download links; copy or send to aria2 RPC.", "description": "Filter and export archive.org /download links; copy or send to aria2 RPC.",
"applications": { "applications": {
"gecko": { "gecko": {
"id": "archive-org-link-grabber@example", "id": "archive-org-link-grabber@jordanwages.com",
"update_url": "https://example.com/updates.json" "update_url": "https://add-ons.jordanwages.com/archive-org-link-grabber/updates.json"
} }
}, },
"browser_action": { "browser_action": {

View file

@ -1,14 +1,13 @@
{ {
"addons": { "addons": {
"archive-org-link-grabber@example": { "archive-org-link-grabber@jordanwages.com": {
"updates": [ "updates": [
{ {
"version": "0.1.0", "version": "0.1.0",
"update_link": "https://example.com/releases/0.1.0/archive-org-link-grabber-0.1.0.xpi", "update_link": "https://add-ons.jordanwages.com/archive-org-link-grabber/releases/0.1.0/archive-org-link-grabber-0.1.0.xpi",
"applications": { "gecko": { "strict_min_version": "91.0" } } "applications": { "gecko": { "strict_min_version": "91.0" } }
} }
] ]
} }
} }
} }