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.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
Desktop Imager: its app update check reads four-number versions (0.8.4.1)
Federico Pereira04b2590011d2
diff --git a/desktop/imager/web/platform.js b/desktop/imager/web/platform.jsindex 6cee761..d809ec7 100644--- a/desktop/imager/web/platform.js+++ b/desktop/imager/web/platform.js@@ -161,11 +161,11 @@ let profilesCache = [];let cacheSizeNow = 0;// "Check for app updates": a newer LordOS Imager among the release files GitHub lists (no other request)-const newer = (a, b) => { const x = a.split('.').map(Number), y = b.split('.').map(Number); for (let i = 0; i < 3; i++) if ((x[i] || 0) !== (y[i] || 0)) return (x[i] || 0) > (y[i] || 0); return false; };+const newer = (a, b) => { const x = a.split('.').map(Number), y = b.split('.').map(Number); for (let i = 0; i < 4; i++) if ((x[i] || 0) !== (y[i] || 0)) return (x[i] || 0) > (y[i] || 0); return false; };function findUpdate(text) {try {for (const r of JSON.parse(text)) for (const a of r.assets || []) {- const m = /^(?:lordos-imager|LordOS[ ._-]Imager)[_-]v?(\d+\.\d+\.\d+)/i.exec(a.name || '');+ const m = /^(?:lordos-imager|LordOS[ ._-]Imager)[_-]v?(\d+\.\d+\.\d+(?:\.\d+)?)/i.exec(a.name || '');if (m && newer(m[1], info_.version) && (!platform.appUpdate || newer(m[1], platform.appUpdate.version))) platform.appUpdate = { version: m[1], tag: r.tag_name };}} catch { /* not a list */ }