The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(check-cloud-sales): Mac download buttons with data-mac-latest count again
purplec6fe3b3f1541
diff --git a/scripts/check-cloud-sales.mjs b/scripts/check-cloud-sales.mjsindex 565ca09c..d4e435a3 100644--- a/scripts/check-cloud-sales.mjs+++ b/scripts/check-cloud-sales.mjs@@ -959,7 +959,9 @@ const downloadFile = { win: /_x64-setup\.exe$/, mac: /_aarch64\.dmg$/, linux: /_const downloadDrift = []for (const [was, anzahl] of [['class="dl-btn" data-dl-for', 2], ['class="lu-nav-dl" data-dl-for', 1], ['data-dl-os', 2]]) {for (const [os, datei] of Object.entries(downloadFile)) {- const links = [...homeText.matchAll(new RegExp(`<a ${was}="${os}" href="([^"]+)"`, 'g'))].map((m) => m[1])+ // Extra data attributes may sit before href, e.g. data-mac-latest on the+ // Mac buttons (lu.js moves that link to the newest release with a .dmg).+ const links = [...homeText.matchAll(new RegExp(`<a ${was}="${os}"(?: data-[a-z-]+(?:="[^"]*")?)* href="([^"]+)"`, 'g'))].map((m) => m[1])if (links.length !== anzahl) downloadDrift.push(`${was}="${os}": ${links.length} instead of ${anzahl}`)for (const link of links) if (!datei.test(link)) downloadDrift.push(`${was}="${os}": ${link}`)}