refactor: move component archives to GitLab Package Registry and keep release assets minimal

This commit is contained in:
2026-10-30 23:00:25 -07:00
parent e7204589a4
commit 47c97fdf21
2 changed files with 20 additions and 9 deletions

View File

@@ -380,10 +380,14 @@ class UpdateClient {
const components = {};
for (const [name, c] of Object.entries(manifest.components)) {
const link = links.find((a) => a.name === c.file);
if (!link) {
const direct = typeof c.url === 'string' &&
c.url.startsWith('https://gitlab.com/api/v4/projects/') &&
c.url.includes('/packages/generic/vyla-home/');
const url = direct ? c.url : (link && link.url);
if (!url) {
throw new Error(`Release is missing asset ${c.file}.`);
}
components[name] = { url: link.url, sha256: c.sha256, id: c.id, size: c.size };
components[name] = { url, sha256: c.sha256, id: c.id, size: c.size };
}
let installer = null;