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:
parent
2eba315910
commit
fb7e208252
3 changed files with 12 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Archive.org Link Grabber",
|
"name": "Archive.org Link Grabber",
|
||||||
"version": "0.2.0",
|
"version": "0.3.0",
|
||||||
"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": {
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,15 @@
|
||||||
"strict_min_version": "91.0"
|
"strict_min_version": "91.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "0.3.0",
|
||||||
|
"update_link": "https://add-ons.jordanwages.com/archive-org-link-grabber/releases/0.3.0/abf5f9638af544919be4-0.3.0.xpi",
|
||||||
|
"applications": {
|
||||||
|
"gecko": {
|
||||||
|
"strict_min_version": "91.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,8 @@ function ensureUpdatesJson() {
|
||||||
|
|
||||||
// Derive public base directory from update_url (strip trailing filename)
|
// Derive public base directory from update_url (strip trailing filename)
|
||||||
let updatesBaseDir = updateUrl.replace(/\/?[^/]*$/, '');
|
let updatesBaseDir = updateUrl.replace(/\/?[^/]*$/, '');
|
||||||
// Build public link to the uploaded XPI
|
// Build public link to the uploaded XPI (artifact is placed directly under the base dir)
|
||||||
const publicLink = `${updatesBaseDir}/releases/${version}/${encodeURIComponent(chosenXpi)}`;
|
const publicLink = `${updatesBaseDir}/${encodeURIComponent(chosenXpi)}`;
|
||||||
|
|
||||||
if (!data.addons) data.addons = {};
|
if (!data.addons) data.addons = {};
|
||||||
if (!data.addons[addonId]) data.addons[addonId] = { updates: [] };
|
if (!data.addons[addonId]) data.addons[addonId] = { updates: [] };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue