Site: the Android button offers the build without Stockfish first
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-23 00:33:33 +03:00
parent 7002731346
commit d13147079e
3 changed files with 10 additions and 10 deletions

View file

@ -75,7 +75,7 @@ const CLIENT_KEYS: &[&str] = &[
"lb_count",
"meta_title",
"btn_android",
"and_full_title",
"and_light_title",
"and_requires",
"and_alpha",
"next_android",

View file

@ -57,7 +57,7 @@
<span class="l2" id="hero-l2">{{t:btn_choose_2}}</span>
</a>
<p class="note" id="hero-note" hidden></p>
<p class="links" id="hero-android" hidden><a rel="nofollow" href="/download/android-noengine" data-platform="android-noengine">{{t:and_light_title}}</a> · {size:android-noengine}</p>
<p class="links" id="hero-android" hidden><a rel="nofollow" href="/download/android" data-platform="android">{{t:and_full_title}}</a> · {size:android}</p>
<p class="note" id="hero-mac" hidden><a href="#mac-first-launch">{{t:mac_how}}</a></p>
<p class="links" id="hero-links">
<a href="#download">{{t:other_platforms}}</a> ·
@ -207,14 +207,14 @@
<h3 class="panel-h">Android <span class="alpha">{{t:and_alpha}}</span></h3>
<p class="hint">{{t:and_intro}}</p>
<p class="hint alpha-note">{{t:and_alpha_text}}</p>
<div class="row" id="download-android-full">
<div class="row-h"><h4>{{t:and_full_title}}</h4><span class="fmt">.apk · {size:android}</span><a class="btn btn-small btn-accent" rel="nofollow" href="/download/android" data-platform="android">{{t:row_download}}</a></div>
<p class="hint">{{t:and_full_text}}</p>
</div>
<div class="row" id="download-android-noengine">
<div class="row-h"><h4>{{t:and_light_title}}</h4><span class="fmt">.apk · {size:android-noengine}</span><a class="btn btn-small btn-secondary" rel="nofollow" href="/download/android-noengine" data-platform="android-noengine">{{t:row_download}}</a></div>
<div class="row-h"><h4>{{t:and_light_title}}</h4><span class="fmt">.apk · {size:android-noengine}</span><a class="btn btn-small btn-accent" rel="nofollow" href="/download/android-noengine" data-platform="android-noengine">{{t:row_download}}</a></div>
<p class="hint">{{t:and_light_text}}</p>
</div>
<div class="row" id="download-android-full">
<div class="row-h"><h4>{{t:and_full_title}}</h4><span class="fmt">.apk · {size:android}</span><a class="btn btn-small btn-secondary" rel="nofollow" href="/download/android" data-platform="android">{{t:row_download}}</a></div>
<p class="hint">{{t:and_full_text}}</p>
</div>
<ol class="steps"><li>{{t:and_step1}}</li><li>{{t:and_step2}}</li></ol>
<p class="hint">{{t:and_note}}</p>
</div>

View file

@ -13,7 +13,7 @@
var ua = navigator.userAgent || "";
var platform = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || "";
var touchMac = /Mac/.test(platform) && navigator.maxTouchPoints > 1;
if (/Android/i.test(ua)) return { os: "android", slug: "android" };
if (/Android/i.test(ua)) return { os: "android", slug: "android-noengine" };
if (/iPhone|iPod|iPad/i.test(ua) || touchMac) return { os: "mobile" };
if (/CrOS/.test(ua)) return { os: "linux", slug: "deb", chromeos: true };
if (/Win/.test(platform) || /Windows/.test(ua)) return { os: "windows", slug: "windows" };
@ -26,7 +26,7 @@
return { os: "unknown" };
}
var sys = detect();
var FORMAT = { windows: ".zip", deb: ".deb", rpm: ".rpm", appimage: "AppImage", android: "APK" };
var FORMAT = { windows: ".zip", deb: ".deb", rpm: ".rpm", appimage: "AppImage", "android-noengine": "APK" };
function intelMac() {
try {
@ -66,7 +66,7 @@
if (asset) parts.push(asset.size);
parts.push(sys.os === "macos" ? t("apple_silicon") : FORMAT[sys.slug]);
if (sys.chromeos) parts.push(t("chromeos"));
if (sys.os === "android") parts.push(t("and_full_title"), t("and_alpha"));
if (sys.os === "android") parts.push(t("and_light_title"), t("and_alpha"));
l2.textContent = parts.join(" · ");
if (sys.os === "macos") {
var note = $("hero-note");