mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-15 06:37:21 -05:00
refactor: move component archives to GitLab Package Registry and keep release assets minimal
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user