Android: design review fixes, icon, signed releases, the site's Android downloads

- The design review (docs/design/android-ui.md §17): the move buttons in the
  bottom bar (snackbars above them), ripple on press, larger ◀ ▶, coordinates
  over the pieces, readable NAG colors in the light theme, 16 dp edges, the
  ⋮ menu (game details, copy PGN/FEN, share), "Deeper" next to ▾, TalkBack
  states, no "*" for unfinished games, "Found N of M", texts.
- The penguin as the adaptive icon and on the splash screen; dark window.
- Release builds: R8, signing from the environment, androidApp/scripts/release.sh
  (two APKs, apksigner and 16 KB alignment checks); the release workflow builds
  them from the repository secrets.
- Website: the Android tab with both APKs, "Download for Android" on phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-22 01:57:03 +03:00
parent 68fcabd691
commit de5ca02a82
54 changed files with 700 additions and 401 deletions

View file

@ -37,6 +37,9 @@ pub const PLATFORMS: &[(&str, &str)] = &[
("appimage", ".AppImage"),
("flatpak", ".flatpak"),
("tarball", "-linux-x86_64.tar.gz"),
// Android: Stockfish built in, and Stockfish downloaded in the app.
("android", "-android.apk"),
("android-noengine", "-android-noengine.apk"),
("checksums", "SHA256SUMS.txt"),
];

View file

@ -230,7 +230,7 @@ impl Site {
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "ChessPenguin",
"operatingSystem": "Windows, macOS, Linux",
"operatingSystem": "Windows, macOS, Linux, Android",
"applicationCategory": "GameApplication",
"license": "https://www.gnu.org/licenses/gpl-3.0.html",
"softwareVersion": release.map(|r| r.version.clone()),

View file

@ -1,6 +1,6 @@
{
"meta_title": "ChessPenguin — kostenloses Programm für Schachdatenbanken unter Windows, macOS und Linux",
"meta_description": "Kostenloses Open-Source-Programm für Schachdatenbanken. Öffnen Sie PGN-Dateien und ChessBase-Datenbanken, lesen Sie kommentierte Partien und analysieren Sie sie mit Stockfish. Für Windows, macOS und Linux.",
"meta_title": "ChessPenguin — kostenloses Programm für Schachdatenbanken unter Windows, macOS, Linux und Android",
"meta_description": "Kostenloses Open-Source-Programm für Schachdatenbanken. Öffnen Sie PGN-Dateien und ChessBase-Datenbanken, lesen Sie kommentierte Partien und analysieren Sie sie mit Stockfish. Für Windows, macOS, Linux und Android.",
"skip": "Zum Inhalt",
"nav_label": "Abschnitte",
"nav_screenshots": "Screenshots",
@ -9,7 +9,7 @@
"nav_support": "Support",
"language": "Sprache",
"header_download": "Download",
"hero_title": "Das kostenlose Programm für Schachdatenbanken unter Windows, macOS und Linux",
"hero_title": "Das kostenlose Programm für Schachdatenbanken unter Windows, macOS, Linux und Android",
"hero_subtitle": "Öffnen Sie PGN-Dateien und ChessBase-Datenbanken, lesen Sie kommentierte Partien und analysieren Sie sie mit Stockfish. Schnell, nativ und Open Source.",
"btn_windows": "Für Windows herunterladen",
"btn_macos": "Für macOS herunterladen",
@ -26,7 +26,7 @@
"mac_requires": "Erfordert einen Mac mit Apple-Chip (M1 oder neuer) und macOS 11 oder neuer.",
"mac_intel_warning": "Dieser Mac scheint einen Intel-Prozessor zu haben. Die aktuelle Version läuft nur auf Apple-Chips.",
"chromeos": "für Linux unter ChromeOS",
"mobile_text": "ChessPenguin ist ein Programm für Computer mit Windows, macOS oder Linux. Öffnen Sie diese Seite auf Ihrem Computer, um es herunterzuladen.",
"mobile_text": "ChessPenguin läuft unter Windows, macOS, Linux und Android. Für iPhone und iPad gibt es noch keine Version — öffnen Sie diese Seite auf Ihrem Computer.",
"share_link": "Link teilen",
"copy_link": "Link kopieren",
"link_copied": "Link kopiert",
@ -163,5 +163,16 @@
"alt12": "Das Fenster Lichess und Chess.com: ein auf beiden Seiten gefundener Nickname mit der Zahl der Partien, bereit zum Herunterladen in eine Datenbank.",
"shot12": "Partien beliebiger Spieler von Lichess und Chess.com, nach Nickname, in einer Datenbank.",
"alt13": "Brett- und Figureneinstellungen im hellen Design: Figurensätze, Zugnotation und Bretter, das gewählte Brett hinter dem Fenster.",
"shot13": "Ganz nach Ihrem Geschmack: 17 Figurensätze, 37 Bretter, Züge in Buchstaben oder Figurinen, Figurenanimation, dunkles und helles Design."
"shot13": "Ganz nach Ihrem Geschmack: 17 Figurensätze, 37 Bretter, Züge in Buchstaben oder Figurinen, Figurenanimation, dunkles und helles Design.",
"btn_android": "Für Android herunterladen",
"and_requires": "Benötigt Android 12 oder neuer.",
"and_intro": "Zwei Varianten derselben App: Datenbanken und Partien ansehen, Züge durchblättern und mit Stockfish analysieren. Die App liest Ihre Dateien nur.",
"and_full_title": "Stockfish eingebaut",
"and_full_text": "Bewertung und beste Züge sofort, ohne Internet.",
"and_light_title": "Stockfish wird in der App geladen",
"and_light_text": "Eine kleinere Datei; die Engine (98 MB) wird in der App geladen, wenn Sie sie brauchen.",
"and_step1": "Öffnen Sie die heruntergeladene Datei auf dem Telefon.",
"and_step2": "Wenn Android fragt, erlauben Sie die Installation von Apps aus dem Browser oder Dateimanager.",
"and_note": "Benötigt Android 12 oder neuer. Jede Variante lässt sich über die andere installieren; Datenbanken und Einstellungen bleiben erhalten.",
"next_android": "Öffnen Sie die Datei auf dem Telefon und erlauben Sie die Installation, wenn Android fragt."
}

View file

@ -1,6 +1,6 @@
{
"meta_title": "ChessPenguin — free chess database software for Windows, macOS and Linux",
"meta_description": "Free, open-source program for chess databases. Open PGN files and ChessBase databases, read annotated games and analyse them with Stockfish. For Windows, macOS and Linux.",
"meta_title": "ChessPenguin — free chess database software for Windows, macOS, Linux and Android",
"meta_description": "Free, open-source program for chess databases. Open PGN files and ChessBase databases, read annotated games and analyse them with Stockfish. For Windows, macOS, Linux and Android.",
"skip": "Skip to content",
"nav_label": "Sections",
"nav_screenshots": "Screenshots",
@ -9,7 +9,7 @@
"nav_support": "Support",
"language": "Language",
"header_download": "Download",
"hero_title": "Free chess database software for Windows, macOS and Linux",
"hero_title": "Free chess database software for Windows, macOS, Linux and Android",
"hero_subtitle": "Open PGN and ChessBase files, read annotated games, and analyse them with Stockfish. Fast, native and open source.",
"btn_windows": "Download for Windows",
"btn_macos": "Download for macOS",
@ -26,7 +26,7 @@
"mac_requires": "Requires a Mac with Apple silicon (M1 or later) and macOS 11 or later.",
"mac_intel_warning": "This Mac seems to have an Intel processor. The current build runs only on Apple silicon.",
"chromeos": "for Linux on ChromeOS",
"mobile_text": "ChessPenguin is a desktop app for Windows, macOS and Linux. Open this page on your computer to download it.",
"mobile_text": "ChessPenguin runs on Windows, macOS, Linux and Android. There is no iPhone or iPad version yet — open this page on your computer.",
"share_link": "Share link",
"copy_link": "Copy link",
"link_copied": "Link copied",
@ -163,5 +163,16 @@
"alt12": "The Lichess and Chess.com window: a nickname found on both sites, with the number of games, ready to download into one database.",
"shot12": "Anyone's games from Lichess and Chess.com, by nickname, in one database.",
"alt13": "Board and piece settings in the light theme: piece sets, move notation and boards, the chosen board behind the window.",
"shot13": "Make it yours: 17 piece sets, 37 boards, moves in letters or figurines, piece animation, dark and light themes."
"shot13": "Make it yours: 17 piece sets, 37 boards, moves in letters or figurines, piece animation, dark and light themes.",
"btn_android": "Download for Android",
"and_requires": "Requires Android 12 or newer.",
"and_intro": "Two builds of one app: browse databases and games, step through the moves and analyse them with Stockfish. The app only reads your files.",
"and_full_title": "Stockfish built in",
"and_full_text": "Evaluation and best moves right away, no internet needed.",
"and_light_title": "Stockfish downloaded in the app",
"and_light_text": "A smaller file; the engine (98 MB) is downloaded in the app when you need it.",
"and_step1": "Open the downloaded file on your phone.",
"and_step2": "If Android asks, allow installing apps from your browser or file manager.",
"and_note": "Requires Android 12 or newer. Either build installs over the other; databases and settings are kept.",
"next_android": "Open the file on your phone and allow the installation if Android asks."
}

View file

@ -1,6 +1,6 @@
{
"meta_title": "ChessPenguin — programa gratuito para bases de datos de ajedrez en Windows, macOS y Linux",
"meta_description": "Programa gratuito y de código abierto para bases de datos de ajedrez. Abre archivos PGN y bases de ChessBase, lee partidas comentadas y analízalas con Stockfish. Para Windows, macOS y Linux.",
"meta_title": "ChessPenguin — programa gratuito para bases de datos de ajedrez en Windows, macOS, Linux y Android",
"meta_description": "Programa gratuito y de código abierto para bases de datos de ajedrez. Abre archivos PGN y bases de ChessBase, lee partidas comentadas y analízalas con Stockfish. Para Windows, macOS, Linux y Android.",
"skip": "Ir al contenido",
"nav_label": "Secciones",
"nav_screenshots": "Capturas",
@ -9,7 +9,7 @@
"nav_support": "Soporte",
"language": "Idioma",
"header_download": "Descargar",
"hero_title": "El programa gratuito para bases de datos de ajedrez en Windows, macOS y Linux",
"hero_title": "El programa gratuito para bases de datos de ajedrez en Windows, macOS, Linux y Android",
"hero_subtitle": "Abre archivos PGN y bases de ChessBase, lee partidas comentadas y analízalas con Stockfish. Rápida, nativa y de código abierto.",
"btn_windows": "Descargar para Windows",
"btn_macos": "Descargar para macOS",
@ -26,7 +26,7 @@
"mac_requires": "Requiere un Mac con chip de Apple (M1 o posterior) y macOS 11 o posterior.",
"mac_intel_warning": "Este Mac parece tener un procesador Intel. La versión actual solo funciona en chips de Apple.",
"chromeos": "para Linux en ChromeOS",
"mobile_text": "ChessPenguin es una aplicación para ordenadores con Windows, macOS o Linux. Abre esta página en tu ordenador para descargarla.",
"mobile_text": "ChessPenguin funciona en Windows, macOS, Linux y Android. Todavía no hay versión para iPhone ni iPad: abre esta página en tu ordenador.",
"share_link": "Compartir enlace",
"copy_link": "Copiar enlace",
"link_copied": "Enlace copiado",
@ -163,5 +163,16 @@
"alt12": "La ventana de Lichess y Chess.com: un nombre encontrado en los dos sitios, con el número de partidas, listo para descargar en una base.",
"shot12": "Las partidas de cualquier jugador de Lichess y Chess.com, por su nombre, en una sola base.",
"alt13": "Ajustes de tablero y piezas en el tema claro: juegos de piezas, notación de jugadas y tableros, con el tablero elegido detrás de la ventana.",
"shot13": "A tu gusto: 17 juegos de piezas, 37 tableros, jugadas con letras o figuras, animación de piezas, temas oscuro y claro."
"shot13": "A tu gusto: 17 juegos de piezas, 37 tableros, jugadas con letras o figuras, animación de piezas, temas oscuro y claro.",
"btn_android": "Descargar para Android",
"and_requires": "Requiere Android 12 o posterior.",
"and_intro": "Dos versiones de la misma aplicación: explora bases y partidas, recorre las jugadas y analízalas con Stockfish. La aplicación solo lee tus archivos.",
"and_full_title": "Stockfish incluido",
"and_full_text": "Evaluación y mejores jugadas al instante, sin internet.",
"and_light_title": "Stockfish se descarga en la aplicación",
"and_light_text": "Un archivo más pequeño; el motor (98 MB) se descarga en la aplicación cuando lo necesites.",
"and_step1": "Abre el archivo descargado en tu teléfono.",
"and_step2": "Si Android lo pide, permite instalar aplicaciones desde el navegador o el gestor de archivos.",
"and_note": "Requiere Android 12 o posterior. Cada versión se instala sobre la otra; las bases y los ajustes se conservan.",
"next_android": "Abre el archivo en tu teléfono y permite la instalación si Android lo pide."
}

View file

@ -1,6 +1,6 @@
{
"meta_title": "ChessPenguin — logiciel gratuit pour bases de données d'échecs sur Windows, macOS et Linux",
"meta_description": "Logiciel gratuit et open source pour les bases de données d'échecs. Ouvrez des fichiers PGN et des bases ChessBase, lisez des parties commentées et analysez-les avec Stockfish. Pour Windows, macOS et Linux.",
"meta_title": "ChessPenguin — logiciel gratuit pour bases de données d'échecs sur Windows, macOS, Linux et Android",
"meta_description": "Logiciel gratuit et open source pour les bases de données d'échecs. Ouvrez des fichiers PGN et des bases ChessBase, lisez des parties commentées et analysez-les avec Stockfish. Pour Windows, macOS, Linux et Android.",
"skip": "Aller au contenu",
"nav_label": "Sections",
"nav_screenshots": "Captures",
@ -9,7 +9,7 @@
"nav_support": "Assistance",
"language": "Langue",
"header_download": "Télécharger",
"hero_title": "Le logiciel gratuit pour vos bases d'échecs, sur Windows, macOS et Linux",
"hero_title": "Le logiciel gratuit pour vos bases d'échecs, sur Windows, macOS, Linux et Android",
"hero_subtitle": "Ouvrez des fichiers PGN et des bases ChessBase, lisez des parties commentées et analysez-les avec Stockfish. Rapide, natif et open source.",
"btn_windows": "Télécharger pour Windows",
"btn_macos": "Télécharger pour macOS",
@ -26,7 +26,7 @@
"mac_requires": "Nécessite un Mac avec puce Apple (M1 ou plus récent) et macOS 11 ou plus récent.",
"mac_intel_warning": "Ce Mac semble avoir un processeur Intel. La version actuelle ne fonctionne que sur les puces Apple.",
"chromeos": "pour Linux sur ChromeOS",
"mobile_text": "ChessPenguin est une application pour ordinateur sous Windows, macOS ou Linux. Ouvrez cette page sur votre ordinateur pour la télécharger.",
"mobile_text": "ChessPenguin fonctionne sous Windows, macOS, Linux et Android. Il n'existe pas encore de version pour iPhone et iPad — ouvrez cette page sur votre ordinateur.",
"share_link": "Partager le lien",
"copy_link": "Copier le lien",
"link_copied": "Lien copié",
@ -163,5 +163,16 @@
"alt12": "La fenêtre Lichess et Chess.com : un pseudo trouvé sur les deux sites, avec le nombre de parties, prêt à être téléchargé dans une base.",
"shot12": "Les parties de n'importe quel joueur sur Lichess et Chess.com, par pseudo, dans une seule base.",
"alt13": "Réglages de l'échiquier et des pièces en thème clair : jeux de pièces, notation des coups et échiquiers, l'échiquier choisi derrière la fenêtre.",
"shot13": "À votre goût : 17 jeux de pièces, 37 échiquiers, coups en lettres ou en figurines, animation des pièces, thèmes sombre et clair."
"shot13": "À votre goût : 17 jeux de pièces, 37 échiquiers, coups en lettres ou en figurines, animation des pièces, thèmes sombre et clair.",
"btn_android": "Télécharger pour Android",
"and_requires": "Android 12 ou plus récent requis.",
"and_intro": "Deux versions d'une même application : parcourez vos bases et vos parties, faites défiler les coups et analysez-les avec Stockfish. L'application ne fait que lire vos fichiers.",
"and_full_title": "Stockfish intégré",
"and_full_text": "Évaluation et meilleurs coups tout de suite, sans internet.",
"and_light_title": "Stockfish téléchargé dans l'application",
"and_light_text": "Un fichier plus petit ; le moteur (98 Mo) se télécharge dans l'application quand vous en avez besoin.",
"and_step1": "Ouvrez le fichier téléchargé sur votre téléphone.",
"and_step2": "Si Android le demande, autorisez l'installation d'applications depuis votre navigateur ou votre gestionnaire de fichiers.",
"and_note": "Android 12 ou plus récent requis. Chaque version s'installe par-dessus l'autre ; les bases et les réglages sont conservés.",
"next_android": "Ouvrez le fichier sur votre téléphone et autorisez l'installation si Android le demande."
}

View file

@ -1,6 +1,6 @@
{
"meta_title": "ChessPenguin — programma gratuito per database di scacchi su Windows, macOS e Linux",
"meta_description": "Programma gratuito e open source per database di scacchi. Apri file PGN e database ChessBase, leggi partite commentate e analizzale con Stockfish. Per Windows, macOS e Linux.",
"meta_title": "ChessPenguin — programma gratuito per database di scacchi su Windows, macOS, Linux e Android",
"meta_description": "Programma gratuito e open source per database di scacchi. Apri file PGN e database ChessBase, leggi partite commentate e analizzale con Stockfish. Per Windows, macOS, Linux e Android.",
"skip": "Vai al contenuto",
"nav_label": "Sezioni",
"nav_screenshots": "Screenshot",
@ -9,7 +9,7 @@
"nav_support": "Supporto",
"language": "Lingua",
"header_download": "Scarica",
"hero_title": "Il programma gratuito per database di scacchi su Windows, macOS e Linux",
"hero_title": "Il programma gratuito per database di scacchi su Windows, macOS, Linux e Android",
"hero_subtitle": "Apri file PGN e database ChessBase, leggi partite commentate e analizzale con Stockfish. Veloce, nativo e open source.",
"btn_windows": "Scarica per Windows",
"btn_macos": "Scarica per macOS",
@ -26,7 +26,7 @@
"mac_requires": "Richiede un Mac con chip Apple (M1 o successivo) e macOS 11 o successivo.",
"mac_intel_warning": "Questo Mac sembra avere un processore Intel. La versione attuale funziona solo sui chip Apple.",
"chromeos": "per Linux su ChromeOS",
"mobile_text": "ChessPenguin è un'app per computer con Windows, macOS o Linux. Apri questa pagina sul computer per scaricarla.",
"mobile_text": "ChessPenguin funziona su Windows, macOS, Linux e Android. Non c'è ancora una versione per iPhone e iPad: apri questa pagina sul computer.",
"share_link": "Condividi il link",
"copy_link": "Copia il link",
"link_copied": "Link copiato",
@ -163,5 +163,16 @@
"alt12": "La finestra Lichess e Chess.com: un nickname trovato su entrambi i siti, con il numero di partite, pronto da scaricare in un database.",
"shot12": "Le partite di qualsiasi giocatore da Lichess e Chess.com, per nickname, in un unico database.",
"alt13": "Impostazioni di scacchiera e pezzi nel tema chiaro: set di pezzi, notazione delle mosse e scacchiere, con la scacchiera scelta dietro la finestra.",
"shot13": "Come piace a te: 17 set di pezzi, 37 scacchiere, mosse in lettere o figurine, animazione dei pezzi, tema scuro e chiaro."
"shot13": "Come piace a te: 17 set di pezzi, 37 scacchiere, mosse in lettere o figurine, animazione dei pezzi, tema scuro e chiaro.",
"btn_android": "Scarica per Android",
"and_requires": "Richiede Android 12 o successivo.",
"and_intro": "Due versioni della stessa app: sfoglia database e partite, scorri le mosse e analizzale con Stockfish. L'app legge soltanto i tuoi file.",
"and_full_title": "Stockfish incluso",
"and_full_text": "Valutazione e mosse migliori subito, senza internet.",
"and_light_title": "Stockfish si scarica nell'app",
"and_light_text": "Un file più piccolo; il motore (98 MB) si scarica nell'app quando serve.",
"and_step1": "Apri il file scaricato sul telefono.",
"and_step2": "Se Android lo chiede, consenti l'installazione di app dal browser o dal file manager.",
"and_note": "Richiede Android 12 o successivo. Ciascuna versione si installa sopra l'altra; database e impostazioni restano.",
"next_android": "Apri il file sul telefono e consenti l'installazione se Android lo chiede."
}

View file

@ -1,6 +1,6 @@
{
"meta_title": "ChessPenguin — бесплатная программа для работы с шахматными базами на Windows, macOS и Linux",
"meta_description": "Бесплатная программа с открытым кодом для работы с шахматными базами. Открывайте PGN и базы ChessBase, читайте аннотированные партии и анализируйте их со Stockfish. Для Windows, macOS и Linux.",
"meta_title": "ChessPenguin — бесплатная программа для работы с шахматными базами на Windows, macOS, Linux и Android",
"meta_description": "Бесплатная программа с открытым кодом для работы с шахматными базами. Открывайте PGN и базы ChessBase, читайте аннотированные партии и анализируйте их со Stockfish. Для Windows, macOS, Linux и Android.",
"skip": "К содержимому",
"nav_label": "Разделы",
"nav_screenshots": "Скриншоты",
@ -9,7 +9,7 @@
"nav_support": "Поддержка",
"language": "Язык",
"header_download": "Скачать",
"hero_title": "Бесплатная программа для работы с шахматными базами на Windows, macOS и Linux",
"hero_title": "Бесплатная программа для работы с шахматными базами на Windows, macOS, Linux и Android",
"hero_subtitle": "Открывайте PGN и базы ChessBase, читайте аннотированные партии и анализируйте их со Stockfish. Быстро, нативно и с открытым кодом.",
"btn_windows": "Скачать для Windows",
"btn_macos": "Скачать для macOS",
@ -26,7 +26,7 @@
"mac_requires": "Нужен Mac с процессором Apple (M1 или новее) и macOS 11 или новее.",
"mac_intel_warning": "Похоже, в этом Mac процессор Intel. Текущая сборка работает только на процессорах Apple.",
"chromeos": "для Linux в ChromeOS",
"mobile_text": "ChessPenguin — программа для компьютера с Windows, macOS или Linux. Откройте эту страницу на компьютере, чтобы скачать её.",
"mobile_text": "ChessPenguin работает на Windows, macOS, Linux и Android. Для iPhone и iPad версии пока нет — откройте эту страницу на компьютере.",
"share_link": "Поделиться ссылкой",
"copy_link": "Скопировать ссылку",
"link_copied": "Ссылка скопирована",
@ -163,5 +163,16 @@
"alt12": "Окно Lichess и Chess.com: ник найден на обоих сайтах, видно число партий, их можно скачать в одну базу.",
"shot12": "Партии любого игрока с Lichess и Chess.com по нику — в одну базу.",
"alt13": "Настройки досок и фигур в светлой теме: наборы фигур, запись ходов и доски, за окном — выбранная доска.",
"shot13": "Под себя: 17 наборов фигур, 37 досок, ходы буквами или фигурками, анимация фигур, тёмная и светлая темы."
"shot13": "Под себя: 17 наборов фигур, 37 досок, ходы буквами или фигурками, анимация фигур, тёмная и светлая темы.",
"btn_android": "Скачать для Android",
"and_requires": "Нужен Android 12 или новее.",
"and_intro": "Две сборки одного приложения: смотрите базы и партии, листайте ходы и анализируйте их со Stockfish. Ваши файлы приложение только читает.",
"and_full_title": "Stockfish уже внутри",
"and_full_text": "Оценка и лучшие ходы сразу, без интернета.",
"and_light_title": "Stockfish скачивается в приложении",
"and_light_text": "Файл меньше; движок (98 МБ) скачивается в приложении, когда понадобится.",
"and_step1": "Откройте скачанный файл на телефоне.",
"and_step2": "Если Android спросит, разрешите установку приложений из браузера или файлового менеджера.",
"and_note": "Нужен Android 12 или новее. Сборки ставятся одна поверх другой, базы и настройки сохраняются.",
"next_android": "Откройте файл на телефоне и разрешите установку, если Android спросит."
}

View file

@ -57,6 +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="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> ·
@ -86,6 +87,7 @@
<li><a href="#download-linux-arch">Arch</a></li>
<li><a href="#download-linux-appimage">AppImage</a></li>
<li><a href="#download-linux-flatpak">Flatpak</a></li>
<li><a href="#download-android">Android</a></li>
</ul>
<p class="free">{{t:free_line}}</p>
@ -134,6 +136,7 @@
<button role="tab" id="tab-windows" aria-controls="download-windows" aria-selected="true">Windows<small hidden>{{t:your_system}}</small></button>
<button role="tab" id="tab-macos" aria-controls="download-macos" aria-selected="false" tabindex="-1">macOS<small hidden>{{t:your_system}}</small></button>
<button role="tab" id="tab-linux" aria-controls="download-linux" aria-selected="false" tabindex="-1">Linux<small hidden>{{t:your_system}}</small></button>
<button role="tab" id="tab-android" aria-controls="download-android" aria-selected="false" tabindex="-1">Android<small hidden>{{t:your_system}}</small></button>
</div>
<div class="panel" role="tabpanel" id="download-windows" aria-labelledby="tab-windows">
@ -200,6 +203,21 @@
</div>
</div>
<div class="panel" role="tabpanel" id="download-android" aria-labelledby="tab-android">
<h3 class="panel-h">Android</h3>
<p class="hint">{{t:and_intro}}</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>
<p class="hint">{{t:and_light_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>
<p class="verify"><a href="https://github.com/vrubelroman/chessPenguin/releases" rel="noopener">{{t:all_releases}} ↗</a> · <a href="https://github.com/vrubelroman/chessPenguin" rel="noopener">{{t:source_code}} ↗</a></p>
</section>

View file

@ -13,7 +13,8 @@
var ua = navigator.userAgent || "";
var platform = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || "";
var touchMac = /Mac/.test(platform) && navigator.maxTouchPoints > 1;
if (/iPhone|iPod|iPad|Android/i.test(ua) || touchMac) return { os: "mobile" };
if (/Android/i.test(ua)) return { os: "android", slug: "android" };
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" };
if (/Mac/.test(platform) || /Macintosh/.test(ua)) return { os: "macos", slug: "macos" };
@ -25,7 +26,7 @@
return { os: "unknown" };
}
var sys = detect();
var FORMAT = { windows: ".zip", deb: ".deb", rpm: ".rpm", appimage: "AppImage" };
var FORMAT = { windows: ".zip", deb: ".deb", rpm: ".rpm", appimage: "AppImage", android: "APK" };
function intelMac() {
try {
@ -60,11 +61,12 @@
var asset = CP.assets[sys.slug];
btn.href = "/download/" + sys.slug;
btn.dataset.platform = sys.slug;
l1.textContent = t(sys.os === "windows" ? "btn_windows" : sys.os === "macos" ? "btn_macos" : "btn_linux");
l1.textContent = t({ windows: "btn_windows", macos: "btn_macos", android: "btn_android" }[sys.os] || "btn_linux");
var parts = [CP.version ? t("btn_version").replace("{version}", CP.version) : t("btn_latest")];
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"));
l2.textContent = parts.join(" · ");
if (sys.os === "macos") {
var note = $("hero-note");
@ -73,6 +75,12 @@
else note.textContent = t("mac_requires");
$("hero-mac").hidden = false;
}
if (sys.os === "android") {
var req = $("hero-note");
req.hidden = false;
req.textContent = t("and_requires");
$("hero-android").hidden = false;
}
if (sys.os === "linux") {
$("hero-links").hidden = true;
var formats = $("hero-formats");
@ -121,6 +129,7 @@
again.appendChild(a1); again.appendChild(document.createTextNode(" · ")); again.appendChild(a2);
panel.appendChild(again);
if (platform === "windows") panel.appendChild(el("p", null, t("next_windows")));
else if (platform === "android" || platform === "android-noengine") panel.appendChild(el("p", null, t("next_android")));
else if (platform === "macos") {
// Gatekeeper warns about every app not signed by Apple: say so before it happens.
panel.appendChild(el("h4", null, t("next_macos_title")));
@ -199,7 +208,7 @@
select(tabs[(j + tabs.length) % tabs.length], true);
});
});
var mine = { windows: "tab-windows", macos: "tab-macos", linux: "tab-linux" }[sys.os];
var mine = { windows: "tab-windows", macos: "tab-macos", linux: "tab-linux", android: "tab-android" }[sys.os];
if (mine) {
$(mine).querySelector("small").hidden = false;
select($(mine));
@ -218,7 +227,7 @@
var id = location.hash.slice(1);
if (!id || /^screenshot-/.test(id)) return;
if (id.indexOf("download-") === 0) {
var panelId = id.replace(/^(download-(windows|macos|linux)).*/, "$1");
var panelId = id.replace(/^(download-(windows|macos|linux|android)).*/, "$1");
var tab = tabs.filter(function (x) { return x.getAttribute("aria-controls") === panelId; })[0];
if (tab) select(tab);
var target = $(id);