fix(release): build updates.json with top-level XPI URL

Remove '/releases/<version>/' from update_link; artifacts are uploaded to the base directory (e.g. https://add-ons.jordanwages.com/archive-org-link-grabber/<xpi>). Update example accordingly.
This commit is contained in:
Jordan Wages 2025-08-23 01:03:11 -05:00
commit fb7e208252
3 changed files with 12 additions and 3 deletions

View file

@ -126,8 +126,8 @@ function ensureUpdatesJson() {
// Derive public base directory from update_url (strip trailing filename)
let updatesBaseDir = updateUrl.replace(/\/?[^/]*$/, '');
// Build public link to the uploaded XPI
const publicLink = `${updatesBaseDir}/releases/${version}/${encodeURIComponent(chosenXpi)}`;
// Build public link to the uploaded XPI (artifact is placed directly under the base dir)
const publicLink = `${updatesBaseDir}/${encodeURIComponent(chosenXpi)}`;
if (!data.addons) data.addons = {};
if (!data.addons[addonId]) data.addons[addonId] = { updates: [] };