Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Website: Imager and ISO links from lordos.media (0.8.4) while the packages are 0.8.4.1

Federico Pereira25aec4595f25
diff --git a/package.json b/package.json
index 78ce237..a41771c 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"version": "0.8.4.1",
"description": "LordOS — React themes and apps for lord-server",
"lordos": {
- "channel": "beta"
+ "channel": "beta",
+ "media": "0.8.4"
},
"scripts": {
"build": "node tools/build-theme.mjs",
diff --git a/web/build.mjs b/web/build.mjs
index 983361e..3e7a18d 100644
--- a/web/build.mjs
+++ b/web/build.mjs
@@ -36,8 +36,10 @@ const FINGERPRINT = 'c7155b8e6bbbb180f907381994d06af76d333016cd6f3facf67cadd053e
const GITHUB = 'https://github.com/lordbasex/LordOS';
// the LordOS Imager downloads of the current release (package.json's version and channel)
const PKG = JSON.parse(fs.readFileSync(path.join(REPO, 'package.json'), 'utf8'));
-const RELEASE_TAG = `v${PKG.version}${PKG.lordos && PKG.lordos.channel ? '-' + PKG.lordos.channel : ''}`;
-const IMAGER_DL = `${GITHUB}/releases/download/${RELEASE_TAG}/lordos_imager_${PKG.version}`;
+// a package-only update (0.8.4.1) leaves the live ISO and the Imager on an earlier release: lordos.media
+const CHANNEL = PKG.lordos && PKG.lordos.channel ? '-' + PKG.lordos.channel : '';
+const MEDIA_VERSION = (PKG.lordos && PKG.lordos.media) || PKG.version;
+const IMAGER_DL = `${GITHUB}/releases/download/v${MEDIA_VERSION}${CHANNEL}/lordos_imager_${MEDIA_VERSION}`;
const r = (...p) => path.join(REPO, ...p);
const read = (f) => fs.readFileSync(f);
@@ -583,7 +585,7 @@ ${featureList[i] ? `<a class="more" href="${pageUrl(l, 'features/' + featureList
return `<div class="laptop" id="hero-show" role="region" aria-roledescription="carousel" aria-label="${esc(H.carousel)}"><div class="lp-screen"><span class="lp-cam" aria-hidden="true"></span><div class="lp-display">${slides}</div></div><div class="lp-base" aria-hidden="true"><span class="lp-notch"></span></div>${ctl}</div><ul class="stats">${pills}</ul>`;
})(),
fingerprint: FINGERPRINT, banner: l === 'en' ? banner() : '',
- writeBlock: HAS_GUIDE ? writeBlock({ l, t, g: guideText[l], esc, links: imagerLinks(l), version: PKG.version, guideUrl: pageUrl(l, 'imager') }) : '',
+ writeBlock: HAS_GUIDE ? writeBlock({ l, t, g: guideText[l], esc, links: imagerLinks(l), version: PKG.version, isoVersion: MEDIA_VERSION, guideUrl: pageUrl(l, 'imager') }) : '',
imagerMac: `${IMAGER_DL}_universal.dmg`, imagerWin: `${IMAGER_DL}_x64_setup.exe`, imagerLinux: `${IMAGER_DL}_amd64.deb`,
faqServer: HAS_FAQ ? pageUrl(l, 'faq') + '#server-vps' : `${GITHUB}/blob/main/docs/INSTALL-DEBIAN.md#servers-and-vps`,
}, t));
@@ -812,7 +814,7 @@ ${(c.items || []).map((it) => {
if (HAS_GUIDE) {
for (const l of LANGS) {
const t = dict[l];
- const { main, meta } = imagerGuide({ content: imagerDir, repo: REPO, lang: l, t, g: guideText[l], version: PKG.version, esc, webp, hashed, read, lumo: LUMO, pageUrl, prefix, links: imagerLinks(l), videoDir: IMAGER_VIDEO_DIR });
+ const { main, meta } = imagerGuide({ content: imagerDir, repo: REPO, lang: l, t, g: guideText[l], version: MEDIA_VERSION, esc, webp, hashed, read, lumo: LUMO, pageUrl, prefix, links: imagerLinks(l), videoDir: IMAGER_VIDEO_DIR });
write(path.join(pageUrl(l, 'imager'), 'index.html'), render(tpl.imager, {
js: jsUrl, header: header(t, 'imager'), footer: footer(t, 'imager'), head: head(t, 'imager', meta, 'imager'), lightbox: render(tpl.lightbox, {}, t), main,
}, t));
diff --git a/web/lib/imager-guide.mjs b/web/lib/imager-guide.mjs
index 37ec3da..63d2f52 100644
--- a/web/lib/imager-guide.mjs
+++ b/web/lib/imager-guide.mjs
@@ -215,10 +215,10 @@ const COOL_ART = {
};
// ---- the "How to write LordOS to a USB stick or SD card" block of the download section ----
-export function writeBlock({ l, t, g, esc, links, version, guideUrl }) {
+export function writeBlock({ l, t, g, esc, links, version, isoVersion = version, guideUrl }) {
const h = g.home;
const md = (s) => inline(String(s || ''));
- const iso = `lordos-live-${version}-amd64.iso`, pi = `lordos-${version}-rpi5-arm64.img.xz`;
+ const iso = `lordos-live-${isoVersion}-amd64.iso`, pi = `lordos-${version}-rpi5-arm64.img.xz`;
const cmd = (id, label, text) => `<div class="cmd"><div class="cmd-bar"><span class="cmd-t" aria-hidden="true"><i></i><i></i><i></i>${esc(label)}</span><button type="button" class="copy" data-copy="${id}" data-done="${esc(t.copied)}" aria-label="${esc(t.copy)}: ${esc(label)}" hidden>${esc(t.copy)}</button></div><pre id="${id}" tabindex="0">${esc(text)}</pre></div>`;
return `<section class="dl-write" id="write" aria-labelledby="wr-h">
<div class="center"><h3 id="wr-h" class="dl-write-h">${esc(h.title)}</h3><p class="sub">${esc(h.lead)}</p></div>