From 148a02f3085f8c427566b0fa7ac7643d5a7b160f Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Mon, 19 Oct 2026 15:32:03 +0300 Subject: [PATCH] Website: clear macOS first-launch instructions; no /donate for now The macOS download section and the "download started" panel explain in advance that macOS warns about every app not signed by Apple, quote what it says, and give both ways to allow ChessPenguin once (System Settings step by step, or one Terminal command with a copy button); Mac visitors get a link to it under the hero button. The /donate redirect is removed until a donation service is chosen. Co-Authored-By: Claude Opus 5.5 --- website/.env.example | 4 ---- website/server/src/main.rs | 14 -------------- website/server/src/site.rs | 10 +++++++--- website/site/i18n/de.json | 19 +++++++++++-------- website/site/i18n/en.json | 19 +++++++++++-------- website/site/i18n/es.json | 19 +++++++++++-------- website/site/i18n/fr.json | 19 +++++++++++-------- website/site/i18n/it.json | 19 +++++++++++-------- website/site/i18n/ru.json | 19 +++++++++++-------- website/site/index.html | 17 ++++++++++++----- website/static/css/site.css | 9 +++++++++ website/static/js/site.js | 22 +++++++++++++--------- 12 files changed, 107 insertions(+), 83 deletions(-) diff --git a/website/.env.example b/website/.env.example index d2ffa68..a4cd142 100644 --- a/website/.env.example +++ b/website/.env.example @@ -15,7 +15,3 @@ STATS_PASSWORD= GITHUB_REPO=vrubelroman/chessPenguin # Take the visitor address from X-Forwarded-For / X-Real-IP (set by nginx). TRUST_PROXY=1 - -# Where /donate leads (the program's "Support the project" button). Empty: the support -# section of the page. -DONATE_URL= diff --git a/website/server/src/main.rs b/website/server/src/main.rs index 3cbe854..cf75177 100644 --- a/website/server/src/main.rs +++ b/website/server/src/main.rs @@ -58,9 +58,6 @@ struct Config { stats_password: String, /// Take the client address from `X-Forwarded-For` / `X-Real-IP` (behind nginx). trust_proxy: bool, - /// Where `/donate` (the program's "Support the project") leads; the support - /// section of the page while it is empty. - donate_url: String, } impl Config { @@ -81,7 +78,6 @@ impl Config { stats_user: var("STATS_USER", "admin"), stats_password: var("STATS_PASSWORD", ""), trust_proxy: var("TRUST_PROXY", "1") != "0", - donate_url: var("DONATE_URL", ""), } } } @@ -211,7 +207,6 @@ async fn main() { .route("/api/release", get(api_release)) .route("/download/{platform}", get(download)) .route("/hit", post(hit)) - .route("/donate", get(donate)) .route("/stats", get(stats)) .route("/stats.csv", get(stats_csv)) .route("/healthz", get(|| async { "ok" })) @@ -410,15 +405,6 @@ async fn hit( StatusCode::NO_CONTENT } -/// `/donate`: the current donation page, so the program's link never has to change. -async fn donate(State(state): State) -> Redirect { - if state.config.donate_url.is_empty() { - Redirect::temporary("/#support") - } else { - Redirect::temporary(&state.config.donate_url) - } -} - /// `/`: English, or `?lang=xx` → `/xx/`. async fn home(state: State, Query(q): Query>) -> Response { if let Some(lang) = q.get("lang") diff --git a/website/server/src/site.rs b/website/server/src/site.rs index 21ec30a..228d70a 100644 --- a/website/server/src/site.rs +++ b/website/server/src/site.rs @@ -54,12 +54,16 @@ const CLIENT_KEYS: &[&str] = &[ "close", "next_windows", "next_macos_title", - "next_macos15", "mac_step1", - "mac_step2", - "mac15_step1", + "mac_warn_title", + "mac_warn_text", + "mac_way1", + "mac_open1", "mac15_step2", "mac15_step3", + "mac_open4", + "mac_way2", + "mac_way2_text", "next_linux", "copy", "copied", diff --git a/website/site/i18n/de.json b/website/site/i18n/de.json index cd771f9..69f3e19 100644 --- a/website/site/i18n/de.json +++ b/website/site/i18n/de.json @@ -40,7 +40,6 @@ "close": "Schließen", "next_windows": "Entpacken Sie das Archiv und starten Sie ChessPenguin.exe.", "next_macos_title": "Erster Start unter macOS", - "next_macos15": "macOS 15 und neuer: siehe Schritte", "next_linux": "Installieren mit:", "gallery_title": "So sieht es aus", "shot1": "Kommentierte Partien auf einem großen, klaren Brett lesen.", @@ -99,14 +98,17 @@ "win_note": "Wenn Windows „Der Computer wurde durch Windows geschützt“ anzeigt, klicken Sie auf „Weitere Informationen“ und dann auf „Trotzdem ausführen“. ChessPenguin ist noch nicht mit einem Microsoft-Zertifikat signiert; das ist nur einmal nötig.", "mac_title": "Mac mit Apple-Chip (M1 oder neuer), macOS 11 oder neuer", "mac_step1": "Öffnen Sie die .dmg-Datei und ziehen Sie ChessPenguin in den Ordner „Programme“.", - "mac_step2": "Beim ersten Mal öffnen Sie „Programme“, klicken ChessPenguin bei gedrückter Ctrl-Taste (oder mit rechts) an, wählen „Öffnen“ und klicken erneut auf „Öffnen“.", - "mac15_title": "Unter macOS 15 Sequoia und neuer", - "mac15_step1": "Doppelklicken Sie auf ChessPenguin. Wenn macOS meldet, dass die App nicht überprüft werden kann, klicken Sie auf „Fertig“.", + "mac_warn_title": "macOS warnt beim ersten Start — das ist zu erwarten", + "mac_warn_text": "Beim ersten Start meldet macOS, dass Apple nicht überprüfen konnte, ob ChessPenguin frei von Schadsoftware ist, und bietet an, es in den Papierkorb zu legen. Das meldet macOS bei jeder App, die nicht von Apple signiert ist; ein Virus wurde nicht gefunden. Erlauben Sie ChessPenguin einmal auf eine der beiden Arten, danach startet es ganz normal.", + "mac_way1": "Weg 1: in den Systemeinstellungen", + "mac_open1": "Öffnen Sie ChessPenguin im Ordner „Programme“. Wenn macOS die Warnung zeigt, klicken Sie auf „Fertig“ (nicht „In den Papierkorb legen“).", "mac15_step2": "Öffnen Sie Systemeinstellungen → Datenschutz & Sicherheit und scrollen Sie zu „Sicherheit“.", "mac15_step3": "Klicken Sie neben „ChessPenguin wurde blockiert“ auf „Dennoch öffnen“ und bestätigen Sie mit Ihrem Passwort.", - "mac_why": "Das ist nur einmal nötig. ChessPenguin ist noch nicht von Apple signiert, dafür braucht man ein kostenpflichtiges Entwicklerkonto. Die App ist Open Source und wird auf GitHub aus dem veröffentlichten Code gebaut.", - "mac_still": "Immer noch blockiert?", - "mac_still_text": "Führen Sie dies im Terminal aus und öffnen Sie ChessPenguin erneut:", + "mac_open4": "Öffnen Sie ChessPenguin erneut. Fertig — die Warnung kommt nicht wieder.", + "mac_way2": "Weg 2: ein Befehl im Terminal", + "mac_way2_text": "Öffnen Sie das Terminal (Programme → Dienstprogramme → Terminal), fügen Sie diesen Befehl ein, drücken Sie die Eingabetaste und öffnen Sie dann ChessPenguin:", + "mac_older": "Unter macOS 14 und älter gibt es eine Abkürzung: Klicken Sie ChessPenguin in „Programme“ bei gedrückter Ctrl-Taste (oder mit rechts) an, wählen Sie „Öffnen“ und klicken Sie erneut auf „Öffnen“.", + "mac_why": "Warum: Apple vertraut Apps von Entwicklern mit einem kostenpflichtigen Apple-Entwicklerkonto. ChessPenguin ist ein kostenloses Open-Source-Projekt und noch nicht signiert. Jede Version wird automatisch auf GitHub aus dem veröffentlichten Quellcode gebaut, und Sie können die Datei mit SHA256SUMS.txt prüfen.", "mac_intel": "Macs mit Intel-Prozessor werden noch nicht unterstützt.", "linux_intro": "Wählen Sie das Paket für Ihre Distribution. Die Befehle gehen davon aus, dass die Datei in ~/Downloads liegt; speichert Ihr Browser woanders, passen Sie den Pfad an.", "lx_deb": "Debian, Ubuntu, Linux Mint", @@ -146,5 +148,6 @@ "footer_geo": "IP-Geolokalisierung von", "nf_title": "Seite nicht gefunden", "nf_text": "Die gesuchte Seite oder Datei gibt es hier nicht.", - "nf_link": "Zu den ChessPenguin-Downloads" + "nf_link": "Zu den ChessPenguin-Downloads", + "mac_how": "Beim ersten Start fragt macOS nach einer Erlaubnis — so öffnen Sie es" } diff --git a/website/site/i18n/en.json b/website/site/i18n/en.json index ac359b5..a6df368 100644 --- a/website/site/i18n/en.json +++ b/website/site/i18n/en.json @@ -40,7 +40,6 @@ "close": "Close", "next_windows": "Unzip the archive and run ChessPenguin.exe.", "next_macos_title": "First launch on macOS", - "next_macos15": "macOS 15 and later: see the steps", "next_linux": "Install it with:", "gallery_title": "See it in action", "shot1": "Read annotated games on a large, clear board.", @@ -99,14 +98,17 @@ "win_note": "If Windows shows “Windows protected your PC”, click More info, then Run anyway. ChessPenguin isn't signed with a Microsoft certificate yet; you only need to do this once.", "mac_title": "Mac with Apple silicon (M1 or later), macOS 11 or later", "mac_step1": "Open the .dmg file and drag ChessPenguin to the Applications folder.", - "mac_step2": "The first time, open Applications, Control-click (or right-click) ChessPenguin and choose Open, then click Open again.", - "mac15_title": "On macOS 15 Sequoia and later", - "mac15_step1": "Double-click ChessPenguin. When macOS says it can't verify the app, click Done.", + "mac_warn_title": "macOS will warn you the first time — this is expected", + "mac_warn_text": "On the first launch macOS says that Apple could not verify ChessPenguin is free of malware, and offers to move it to the Trash. It says this about every app that is not signed by Apple; no virus was found. Allow ChessPenguin once, in either of these two ways, and from then on it opens normally.", + "mac_way1": "Way 1: in System Settings", + "mac_open1": "Open ChessPenguin from Applications. When macOS shows the warning, click Done (not Move to Trash).", "mac15_step2": "Open System Settings → Privacy & Security and scroll down to Security.", "mac15_step3": "Click Open Anyway next to “ChessPenguin was blocked”, then confirm with your password.", - "mac_why": "You only need to do this once. ChessPenguin isn't signed by Apple yet because that requires a paid developer account. The app is open source and built on GitHub from the published code.", - "mac_still": "Still won't open?", - "mac_still_text": "Run this in Terminal, then open ChessPenguin again:", + "mac_open4": "Open ChessPenguin again. Done — the warning will not come back.", + "mac_way2": "Way 2: one command in Terminal", + "mac_way2_text": "Open Terminal (Applications → Utilities → Terminal), paste this command, press Return, then open ChessPenguin:", + "mac_older": "On macOS 14 and earlier there is a shortcut: Control-click (or right-click) ChessPenguin in Applications, choose Open, then click Open again.", + "mac_why": "Why: Apple trusts apps from developers who pay for an Apple developer account. ChessPenguin is a free open-source project and is not signed yet. Every build is made automatically on GitHub from the published source code, and you can check the file against SHA256SUMS.txt.", "mac_intel": "Macs with Intel processors are not supported yet.", "linux_intro": "Pick the package for your distribution. Commands assume the file is in ~/Downloads; if your browser saves files elsewhere, change the path.", "lx_deb": "Debian, Ubuntu, Linux Mint", @@ -146,5 +148,6 @@ "footer_geo": "IP geolocation by", "nf_title": "Page not found", "nf_text": "The page or file you were looking for isn't here.", - "nf_link": "Go to ChessPenguin downloads" + "nf_link": "Go to ChessPenguin downloads", + "mac_how": "At first launch macOS asks for permission — how to open" } diff --git a/website/site/i18n/es.json b/website/site/i18n/es.json index 2306b55..f5e011f 100644 --- a/website/site/i18n/es.json +++ b/website/site/i18n/es.json @@ -40,7 +40,6 @@ "close": "Cerrar", "next_windows": "Descomprime el archivo y ejecuta ChessPenguin.exe.", "next_macos_title": "Primer inicio en macOS", - "next_macos15": "macOS 15 y posterior: ver los pasos", "next_linux": "Instálalo con:", "gallery_title": "Míralo en acción", "shot1": "Lee partidas comentadas en un tablero grande y claro.", @@ -99,14 +98,17 @@ "win_note": "Si Windows muestra «Windows protegió su PC», haz clic en «Más información» y luego en «Ejecutar de todas formas». ChessPenguin aún no está firmado con un certificado de Microsoft; solo hace falta una vez.", "mac_title": "Mac con chip de Apple (M1 o posterior), macOS 11 o posterior", "mac_step1": "Abre el archivo .dmg y arrastra ChessPenguin a la carpeta Aplicaciones.", - "mac_step2": "La primera vez, abre Aplicaciones, haz Control-clic (o clic derecho) en ChessPenguin, elige Abrir y vuelve a hacer clic en Abrir.", - "mac15_title": "En macOS 15 Sequoia y posterior", - "mac15_step1": "Haz doble clic en ChessPenguin. Cuando macOS diga que no puede verificar la app, haz clic en OK.", + "mac_warn_title": "macOS te avisará la primera vez — es lo esperado", + "mac_warn_text": "Al abrirla por primera vez, macOS dice que Apple no ha podido verificar que ChessPenguin esté libre de malware y ofrece moverla a la Papelera. macOS lo dice de cualquier app que no esté firmada por Apple; no se ha encontrado ningún virus. Permite ChessPenguin una sola vez, de cualquiera de estas dos formas, y a partir de entonces se abrirá con normalidad.", + "mac_way1": "Forma 1: en Ajustes del Sistema", + "mac_open1": "Abre ChessPenguin desde Aplicaciones. Cuando macOS muestre el aviso, haz clic en OK (no en Trasladar a la Papelera).", "mac15_step2": "Abre Ajustes del Sistema → Privacidad y seguridad y desplázate hasta Seguridad.", "mac15_step3": "Haz clic en «Abrir igualmente» junto a «Se ha bloqueado ChessPenguin» y confirma con tu contraseña.", - "mac_why": "Solo hace falta una vez. ChessPenguin aún no está firmado por Apple, lo que requiere una cuenta de desarrollador de pago. La app es de código abierto y se compila en GitHub a partir del código publicado.", - "mac_still": "¿Sigue bloqueada?", - "mac_still_text": "Ejecuta esto en Terminal y vuelve a abrir ChessPenguin:", + "mac_open4": "Vuelve a abrir ChessPenguin. Listo: el aviso no volverá a aparecer.", + "mac_way2": "Forma 2: un comando en Terminal", + "mac_way2_text": "Abre Terminal (Aplicaciones → Utilidades → Terminal), pega este comando, pulsa Retorno y abre ChessPenguin:", + "mac_older": "En macOS 14 y anteriores hay un atajo: haz Control-clic (o clic derecho) en ChessPenguin en Aplicaciones, elige Abrir y vuelve a hacer clic en Abrir.", + "mac_why": "Por qué: Apple confía en las apps de desarrolladores con una cuenta de desarrollador de Apple de pago. ChessPenguin es un proyecto gratuito y de código abierto y aún no está firmado. Cada versión se compila automáticamente en GitHub a partir del código publicado, y puedes comprobar el archivo con SHA256SUMS.txt.", "mac_intel": "Los Mac con procesador Intel aún no son compatibles.", "linux_intro": "Elige el paquete de tu distribución. Los comandos suponen que el archivo está en ~/Downloads; si tu navegador guarda en otro sitio, cambia la ruta.", "lx_deb": "Debian, Ubuntu, Linux Mint", @@ -146,5 +148,6 @@ "footer_geo": "Geolocalización IP por", "nf_title": "Página no encontrada", "nf_text": "La página o el archivo que buscabas no está aquí.", - "nf_link": "Ir a las descargas de ChessPenguin" + "nf_link": "Ir a las descargas de ChessPenguin", + "mac_how": "La primera vez macOS pide permiso — cómo abrirla" } diff --git a/website/site/i18n/fr.json b/website/site/i18n/fr.json index 2bc47d8..b254b72 100644 --- a/website/site/i18n/fr.json +++ b/website/site/i18n/fr.json @@ -40,7 +40,6 @@ "close": "Fermer", "next_windows": "Décompressez l'archive et lancez ChessPenguin.exe.", "next_macos_title": "Premier lancement sur macOS", - "next_macos15": "macOS 15 et plus récent : voir les étapes", "next_linux": "Installez-le avec :", "gallery_title": "En images", "shot1": "Lisez des parties commentées sur un grand échiquier bien lisible.", @@ -99,14 +98,17 @@ "win_note": "Si Windows affiche « Windows a protégé votre ordinateur », cliquez sur « Informations complémentaires », puis « Exécuter quand même ». ChessPenguin n'est pas encore signé par un certificat Microsoft ; cela n'est nécessaire qu'une fois.", "mac_title": "Mac avec puce Apple (M1 ou plus récent), macOS 11 ou plus récent", "mac_step1": "Ouvrez le fichier .dmg et faites glisser ChessPenguin dans le dossier Applications.", - "mac_step2": "La première fois, ouvrez Applications, faites un Contrôle-clic (ou clic droit) sur ChessPenguin, choisissez Ouvrir, puis cliquez encore sur Ouvrir.", - "mac15_title": "Sur macOS 15 Sequoia et plus récent", - "mac15_step1": "Double-cliquez sur ChessPenguin. Quand macOS indique qu'il ne peut pas vérifier l'app, cliquez sur Terminé.", + "mac_warn_title": "macOS vous avertira au premier lancement — c'est normal", + "mac_warn_text": "Au premier lancement, macOS indique qu'Apple n'a pas pu vérifier que ChessPenguin est exempt de logiciels malveillants et propose de le placer dans la corbeille. macOS affiche ce message pour toute app non signée par Apple ; aucun virus n'a été trouvé. Autorisez ChessPenguin une seule fois, de l'une des deux façons ci-dessous ; ensuite il s'ouvre normalement.", + "mac_way1": "Méthode 1 : dans Réglages Système", + "mac_open1": "Ouvrez ChessPenguin depuis Applications. Quand macOS affiche l'avertissement, cliquez sur Terminé (pas sur Placer dans la corbeille).", "mac15_step2": "Ouvrez Réglages Système → Confidentialité et sécurité et faites défiler jusqu'à Sécurité.", "mac15_step3": "Cliquez sur « Ouvrir quand même » à côté de « ChessPenguin a été bloqué », puis confirmez avec votre mot de passe.", - "mac_why": "Cela n'est nécessaire qu'une fois. ChessPenguin n'est pas encore signé par Apple, ce qui demande un compte développeur payant. L'app est open source et compilée sur GitHub à partir du code publié.", - "mac_still": "Toujours bloqué ?", - "mac_still_text": "Exécutez ceci dans le Terminal, puis rouvrez ChessPenguin :", + "mac_open4": "Rouvrez ChessPenguin. C'est fait — l'avertissement ne reviendra plus.", + "mac_way2": "Méthode 2 : une commande dans le Terminal", + "mac_way2_text": "Ouvrez le Terminal (Applications → Utilitaires → Terminal), collez cette commande, appuyez sur Entrée, puis ouvrez ChessPenguin :", + "mac_older": "Sur macOS 14 et antérieur, il existe un raccourci : faites un Contrôle-clic (ou clic droit) sur ChessPenguin dans Applications, choisissez Ouvrir, puis cliquez à nouveau sur Ouvrir.", + "mac_why": "Pourquoi : Apple fait confiance aux apps des développeurs disposant d'un compte développeur Apple payant. ChessPenguin est un projet gratuit et open source, pas encore signé. Chaque version est compilée automatiquement sur GitHub à partir du code publié, et vous pouvez vérifier le fichier avec SHA256SUMS.txt.", "mac_intel": "Les Mac à processeur Intel ne sont pas encore pris en charge.", "linux_intro": "Choisissez le paquet de votre distribution. Les commandes supposent que le fichier est dans ~/Downloads ; si votre navigateur enregistre ailleurs, adaptez le chemin.", "lx_deb": "Debian, Ubuntu, Linux Mint", @@ -146,5 +148,6 @@ "footer_geo": "Géolocalisation IP par", "nf_title": "Page introuvable", "nf_text": "La page ou le fichier que vous cherchiez n'est pas ici.", - "nf_link": "Aller aux téléchargements de ChessPenguin" + "nf_link": "Aller aux téléchargements de ChessPenguin", + "mac_how": "Au premier lancement, macOS demande une autorisation — comment l'ouvrir" } diff --git a/website/site/i18n/it.json b/website/site/i18n/it.json index 12e2864..c50e7e6 100644 --- a/website/site/i18n/it.json +++ b/website/site/i18n/it.json @@ -40,7 +40,6 @@ "close": "Chiudi", "next_windows": "Estrai l'archivio ed esegui ChessPenguin.exe.", "next_macos_title": "Primo avvio su macOS", - "next_macos15": "macOS 15 e successivi: vedi i passaggi", "next_linux": "Installalo con:", "gallery_title": "Guardalo in azione", "shot1": "Leggi partite commentate su una scacchiera grande e nitida.", @@ -99,14 +98,17 @@ "win_note": "Se Windows mostra «PC protetto da Windows», fai clic su «Ulteriori informazioni» e poi su «Esegui comunque». ChessPenguin non è ancora firmato con un certificato Microsoft; serve solo la prima volta.", "mac_title": "Mac con chip Apple (M1 o successivo), macOS 11 o successivo", "mac_step1": "Apri il file .dmg e trascina ChessPenguin nella cartella Applicazioni.", - "mac_step2": "La prima volta apri Applicazioni, fai Ctrl-clic (o clic destro) su ChessPenguin, scegli Apri e poi di nuovo Apri.", - "mac15_title": "Su macOS 15 Sequoia e successivi", - "mac15_step1": "Fai doppio clic su ChessPenguin. Quando macOS dice che non può verificare l'app, fai clic su Fine.", + "mac_warn_title": "Al primo avvio macOS ti avviserà — è normale", + "mac_warn_text": "Al primo avvio macOS dice che Apple non ha potuto verificare che ChessPenguin sia privo di malware e propone di spostarlo nel Cestino. macOS lo dice di ogni app non firmata da Apple; non è stato trovato alcun virus. Consenti ChessPenguin una sola volta, in uno dei due modi qui sotto, e da quel momento si aprirà normalmente.", + "mac_way1": "Modo 1: in Impostazioni di Sistema", + "mac_open1": "Apri ChessPenguin da Applicazioni. Quando macOS mostra l'avviso, fai clic su Fine (non su Sposta nel Cestino).", "mac15_step2": "Apri Impostazioni di Sistema → Privacy e sicurezza e scorri fino a Sicurezza.", "mac15_step3": "Fai clic su «Apri comunque» accanto a «ChessPenguin è stato bloccato» e conferma con la password.", - "mac_why": "Serve solo la prima volta. ChessPenguin non è ancora firmato da Apple, che richiede un account sviluppatore a pagamento. L'app è open source e viene compilata su GitHub dal codice pubblicato.", - "mac_still": "Ancora bloccato?", - "mac_still_text": "Esegui questo nel Terminale, poi riapri ChessPenguin:", + "mac_open4": "Riapri ChessPenguin. Fatto: l'avviso non comparirà più.", + "mac_way2": "Modo 2: un comando nel Terminale", + "mac_way2_text": "Apri il Terminale (Applicazioni → Utility → Terminale), incolla questo comando, premi Invio, poi apri ChessPenguin:", + "mac_older": "Su macOS 14 e precedenti c'è una scorciatoia: fai Ctrl-clic (o clic destro) su ChessPenguin in Applicazioni, scegli Apri e poi di nuovo Apri.", + "mac_why": "Perché: Apple si fida delle app di sviluppatori con un account sviluppatore Apple a pagamento. ChessPenguin è un progetto gratuito e open source e non è ancora firmato. Ogni versione viene compilata automaticamente su GitHub dal codice pubblicato, e puoi verificare il file con SHA256SUMS.txt.", "mac_intel": "I Mac con processore Intel non sono ancora supportati.", "linux_intro": "Scegli il pacchetto per la tua distribuzione. I comandi presuppongono che il file sia in ~/Downloads; se il browser salva altrove, cambia il percorso.", "lx_deb": "Debian, Ubuntu, Linux Mint", @@ -146,5 +148,6 @@ "footer_geo": "Geolocalizzazione IP di", "nf_title": "Pagina non trovata", "nf_text": "La pagina o il file che cercavi non è qui.", - "nf_link": "Vai ai download di ChessPenguin" + "nf_link": "Vai ai download di ChessPenguin", + "mac_how": "Al primo avvio macOS chiede un permesso — come aprirlo" } diff --git a/website/site/i18n/ru.json b/website/site/i18n/ru.json index 0d9a7df..4a5f370 100644 --- a/website/site/i18n/ru.json +++ b/website/site/i18n/ru.json @@ -40,7 +40,6 @@ "close": "Закрыть", "next_windows": "Распакуйте архив и запустите ChessPenguin.exe.", "next_macos_title": "Первый запуск на macOS", - "next_macos15": "macOS 15 и новее: смотрите шаги", "next_linux": "Установите командой:", "gallery_title": "Посмотрите в деле", "shot1": "Читайте аннотированные партии на большой, чёткой доске.", @@ -99,14 +98,17 @@ "win_note": "Если Windows покажет «Система Windows защитила ваш компьютер», нажмите «Подробнее», затем «Выполнить в любом случае». ChessPenguin пока не подписан сертификатом Microsoft; это нужно сделать один раз.", "mac_title": "Mac с процессором Apple (M1 или новее), macOS 11 или новее", "mac_step1": "Откройте файл .dmg и перетащите ChessPenguin в папку «Программы».", - "mac_step2": "В первый раз откройте «Программы», щёлкните ChessPenguin с нажатой Control (или правой кнопкой), выберите «Открыть» и ещё раз «Открыть».", - "mac15_title": "На macOS 15 Sequoia и новее", - "mac15_step1": "Дважды щёлкните ChessPenguin. Когда macOS сообщит, что не может проверить программу, нажмите «Готово».", + "mac_warn_title": "При первом запуске macOS предупредит — так и должно быть", + "mac_warn_text": "При первом запуске macOS сообщит, что Apple не удалось проверить ChessPenguin на вредоносное ПО, и предложит переместить программу в Корзину. Так macOS пишет о любой программе, которая не подписана Apple; вирус при этом не найден. Разрешите запуск один раз любым из двух способов — дальше ChessPenguin будет открываться как обычно.", + "mac_way1": "Способ 1: в «Системных настройках»", + "mac_open1": "Откройте ChessPenguin из папки «Программы». Когда macOS покажет предупреждение, нажмите «Готово» (не «Переместить в Корзину»).", "mac15_step2": "Откройте «Системные настройки» → «Конфиденциальность и безопасность» и прокрутите до раздела «Безопасность».", "mac15_step3": "Нажмите «Всё равно открыть» рядом с «ChessPenguin заблокирован» и подтвердите паролем.", - "mac_why": "Это нужно сделать один раз. ChessPenguin пока не подписан Apple: для этого нужен платный аккаунт разработчика. Программа с открытым кодом и собирается на GitHub из опубликованных исходников.", - "mac_still": "Всё равно не открывается?", - "mac_still_text": "Выполните в «Терминале» и снова откройте ChessPenguin:", + "mac_open4": "Снова откройте ChessPenguin. Готово — предупреждение больше не появится.", + "mac_way2": "Способ 2: одна команда в «Терминале»", + "mac_way2_text": "Откройте «Терминал» («Программы» → «Утилиты» → «Терминал»), вставьте команду, нажмите Return и откройте ChessPenguin:", + "mac_older": "В macOS 14 и старше есть короткий путь: в «Программах» щёлкните ChessPenguin с нажатой Control (или правой кнопкой), выберите «Открыть» и ещё раз «Открыть».", + "mac_why": "Почему так: Apple доверяет программам разработчиков с платным аккаунтом Apple Developer. ChessPenguin — бесплатный проект с открытым кодом и пока не подписан. Каждая сборка делается автоматически на GitHub из опубликованных исходников, а файл можно сверить с SHA256SUMS.txt.", "mac_intel": "Mac с процессорами Intel пока не поддерживаются.", "linux_intro": "Выберите пакет для своего дистрибутива. Команды рассчитаны на файл в ~/Downloads; если браузер сохраняет файлы в другую папку, поправьте путь.", "lx_deb": "Debian, Ubuntu, Linux Mint", @@ -146,5 +148,6 @@ "footer_geo": "Геолокация по IP —", "nf_title": "Страница не найдена", "nf_text": "Страницы или файла, который вы искали, здесь нет.", - "nf_link": "К загрузкам ChessPenguin" + "nf_link": "К загрузкам ChessPenguin", + "mac_how": "При первом запуске macOS попросит разрешение — как открыть" } diff --git a/website/site/index.html b/website/site/index.html index 87ed8fc..924806b 100644 --- a/website/site/index.html +++ b/website/site/index.html @@ -57,6 +57,7 @@ {{t:btn_choose_2}} +

macOS

{{t:mac_title}}

.dmg · {size:macos}{{t:row_download}}
-
  1. {{t:mac_step1}}
  2. {{t:mac_step2}}
-
{{t:mac15_title}}
-
  1. {{t:mac15_step1}}
  2. {{t:mac15_step2}}
  3. {{t:mac15_step3}}
+
  1. {{t:mac_step1}}
+
+
{{t:mac_warn_title}}
+

{{t:mac_warn_text}}

+
{{t:mac_way1}}
+
  1. {{t:mac_open1}}
  2. {{t:mac15_step2}}
  3. {{t:mac15_step3}}
  4. {{t:mac_open4}}
+
{{t:mac_way2}}
+

{{t:mac_way2_text}}

+
xattr -dr com.apple.quarantine /Applications/ChessPenguin.app
+

{{t:mac_older}}

+

{{t:mac_why}}

-
{{t:mac_still}}

{{t:mac_still_text}}

-
xattr -dr com.apple.quarantine /Applications/ChessPenguin.app

{{t:mac_intel}}

diff --git a/website/static/css/site.css b/website/static/css/site.css index e093709..8d4cf87 100644 --- a/website/static/css/site.css +++ b/website/static/css/site.css @@ -144,6 +144,15 @@ p { margin: 0 0 12px; } .steps { margin: 0 0 8px; padding-left: 20px; } .steps li { margin-bottom: 4px; } .row h5 { font-size: 15px; margin: 14px 0 6px; } +/* What to expect on the first launch (macOS Gatekeeper). */ +.callout { border: 1px solid var(--warn); border-left-width: 4px; border-radius: 8px; padding: 12px 16px; margin: 12px 0; background: color-mix(in srgb, var(--warn) 7%, transparent); } +.callout h5 { margin: 0 0 6px; font-size: 16px; } +.callout h6 { margin: 14px 0 6px; font-size: 15px; } +.callout p { margin: 0 0 8px; } +.callout ol { margin: 0 0 8px; padding-left: 20px; } +.callout li { margin-bottom: 4px; } +.started .callout { margin-top: 10px; } +.callout .cmd code { white-space: normal; overflow-wrap: anywhere; } .hint { font-size: 14px; color: var(--text-2); margin: 8px 0 0; } .hint code { font-size: 13px; } .cmd { display: flex; align-items: center; gap: 8px; background: var(--code-bg); border-radius: 8px; padding: 8px 8px 8px 16px; margin: 8px 0 0; } diff --git a/website/static/js/site.js b/website/static/js/site.js index cb0ff4e..3017001 100644 --- a/website/static/js/site.js +++ b/website/static/js/site.js @@ -71,6 +71,7 @@ note.hidden = false; if (intelMac()) { note.textContent = t("mac_intel_warning"); note.classList.add("warn"); } else note.textContent = t("mac_requires"); + $("hero-mac").hidden = false; } if (sys.os === "linux") { $("hero-links").hidden = true; @@ -121,17 +122,20 @@ panel.appendChild(again); if (platform === "windows") panel.appendChild(el("p", null, t("next_windows"))); 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"))); + panel.appendChild(el("p", null, t("mac_step1"))); + var box = el("div", { class: "callout" }); + box.appendChild(el("h5", null, t("mac_warn_title"))); + box.appendChild(el("p", null, t("mac_warn_text"))); + box.appendChild(el("h6", null, t("mac_way1"))); var ol = el("ol"); - ol.appendChild(el("li", null, t("mac_step1"))); - ol.appendChild(el("li", null, t("mac_step2"))); - panel.appendChild(ol); - var d = el("details"); - d.appendChild(el("summary", null, t("next_macos15"))); - var ol2 = el("ol"); - ["mac15_step1", "mac15_step2", "mac15_step3"].forEach(function (k) { ol2.appendChild(el("li", null, t(k))); }); - d.appendChild(ol2); - panel.appendChild(d); + ["mac_open1", "mac15_step2", "mac15_step3", "mac_open4"].forEach(function (k) { ol.appendChild(el("li", null, t(k))); }); + box.appendChild(ol); + box.appendChild(el("h6", null, t("mac_way2"))); + box.appendChild(el("p", null, t("mac_way2_text"))); + box.appendChild(cmd("xattr -dr com.apple.quarantine /Applications/ChessPenguin.app")); + panel.appendChild(box); } else if (COMMANDS[platform] && asset.file) { panel.appendChild(el("p", { class: "file" }, t("next_linux"))); COMMANDS[platform](asset.file).forEach(function (c) { panel.appendChild(cmd(c)); });