From bd2a14ed47b3027086ef9c3a5534f3371ee235f4 Mon Sep 17 00:00:00 2001 From: Denis Defolie Date: Sat, 17 Oct 2026 22:29:59 +0200 Subject: [PATCH] Serve the F-Droid repository at /fdroid/repo as the client expects Co-Authored-By: Claude Sonnet 5.5 --- README-EN.md | 2 +- README.md | 2 +- docs/distribution/fdroid.md | 2 +- docs/specs/decisions.md | 2 ++ fdroid/config.template.yml | 2 +- tools/fdroid_repo.sh | 12 +++++++----- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README-EN.md b/README-EN.md index fd3f673..0fefde6 100644 --- a/README-EN.md +++ b/README-EN.md @@ -8,7 +8,7 @@ Open source project, in development. Current status: version 0.9.4, playable off Ready-to-play builds are on the [Releases](https://github.com/deunix-educ/aventuriers-des-mots/releases) page: one archive per platform (Linux, Windows, macOS, Android, ChromeOS/browser) and `SHA256SUMS` to verify the files. These are preview versions: draft educational content and placeholder voices. Each archive contains a `LISEZMOI` file (in French) explaining how to start the game. -**Android via F-Droid**: in F-Droid (or Droid-ify, Neo Store), Settings > Repositories > Add, enter `https://deunix-educ.github.io/aventuriers-des-mots/repo`, then install "Les Aventuriers des mots". Repository SHA-256 fingerprint, to compare with the one shown by the client: +**Android via F-Droid**: in F-Droid (or Droid-ify, Neo Store), Settings > Repositories > Add, enter `https://deunix-educ.github.io/aventuriers-des-mots/fdroid/repo`, then install "Les Aventuriers des mots". Repository SHA-256 fingerprint, to compare with the one shown by the client: `87:29:A2:08:FA:21:58:00:A0:44:9B:C7:2C:77:7B:F5:89:CE:83:0C:7F:C3:5D:3B:C6:73:54:5B:B4:8A:A9:05` diff --git a/README.md b/README.md index 2fb49e5..92a8470 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Projet open source, en développement. Statut actuel : version 0.9.4, jouable ho Les versions prêtes à jouer sont sur la page des [Releases](https://github.com/deunix-educ/aventuriers-des-mots/releases) : une archive par plateforme (Linux, Windows, macOS, Android, ChromeOS/navigateur) et `SHA256SUMS` pour vérifier les fichiers. Ce sont des versions préliminaires : contenu pédagogique en brouillon, voix provisoires. Chaque archive contient un fichier `LISEZMOI` qui explique le lancement. -**Android via F-Droid** : dans F-Droid (ou Droid-ify, Neo Store), Réglages > Dépôts > Ajouter, saisir `https://deunix-educ.github.io/aventuriers-des-mots/repo`, puis installer « Les Aventuriers des mots ». Empreinte SHA-256 du dépôt, à comparer avec celle affichée par le client : +**Android via F-Droid** : dans F-Droid (ou Droid-ify, Neo Store), Réglages > Dépôts > Ajouter, saisir `https://deunix-educ.github.io/aventuriers-des-mots/fdroid/repo`, puis installer « Les Aventuriers des mots ». Empreinte SHA-256 du dépôt, à comparer avec celle affichée par le client : `87:29:A2:08:FA:21:58:00:A0:44:9B:C7:2C:77:7B:F5:89:CE:83:0C:7F:C3:5D:3B:C6:73:54:5B:B4:8A:A9:05` diff --git a/docs/distribution/fdroid.md b/docs/distribution/fdroid.md index 2bfb42d..af34d6b 100644 --- a/docs/distribution/fdroid.md +++ b/docs/distribution/fdroid.md @@ -69,7 +69,7 @@ distincte**. **Pour les utilisateurs** (une fois publié) 1. Installer F-Droid (f-droid.org) ou un client compatible. 2. Réglages > Dépôts > Ajouter un dépôt, saisir - `https://deunix-educ.github.io/aventuriers-des-mots/repo`. + `https://deunix-educ.github.io/aventuriers-des-mots/fdroid/repo`. 3. Vérifier l'empreinte SHA-256 affichée par `make fdroid-repo` (à publier dans le README) pour être sûr de la source ; installer « Les Aventuriers des mots ». diff --git a/docs/specs/decisions.md b/docs/specs/decisions.md index 5e434d1..4555983 100644 --- a/docs/specs/decisions.md +++ b/docs/specs/decisions.md @@ -461,3 +461,5 @@ Les corrections et les dictées CE1/CE2 n'ont pas révélé d'autre problème ; **Dépôt F-Droid personnel (0.9.4)** — mis en place en attendant la réponse d'IzzyOnDroid (voie 2 de `docs/distribution/fdroid.md`). `tools/fdroid_repo.sh` (`make fdroid-repo` / `make fdroid-publish`) construit un dépôt avec `fdroidserver` 2.4.5 à partir de l'APK arm64 de `dist/` (signature de publication d'origine conservée), index signé par une clé de dépôt distincte créée au premier lancement (hors dépôt, droits 600, **à sauvegarder**), trois dernières versions conservées, publication par force-push d'une branche orpheline `gh-pages` servie par GitHub Pages à `https://deunix-educ.github.io/aventuriers-des-mots/repo`. Texte et images localisés repris de `fastlane/`. **Vérifié** : construction locale, index (`index-v1.json`) contenant l'application, sa licence, ses catégories, l'ABI arm64 et le bon certificat de signature. **Non vérifié** : publication, activation de Pages, installation depuis un client F-Droid sur un appareil. **Dépôt F-Droid publié (0.9.4)** — branche `gh-pages` poussée, GitHub Pages actif (source `gh-pages`, `/`), dépôt en ligne à `https://deunix-educ.github.io/aventuriers-des-mots/repo` : index et APK servis, APK identique (SHA-256) à celui de `dist/`. Adresse et empreinte de la clé du dépôt ajoutées aux README. **Non vérifié** : ajout et installation depuis un client F-Droid sur un appareil. + +**Adresse du dépôt corrigée (0.9.4)** — le client F-Droid avertit « Repo address might be malformed (missing '/fdroid/repo') » : l'adresse est désormais `https://deunix-educ.github.io/aventuriers-des-mots/fdroid/repo` (dossier `fdroid/repo/` de la branche `gh-pages`). La clé du dépôt, donc l'empreinte, ne change pas ; l'ancienne adresse `/repo` n'existe plus. Anciennes mentions ci-dessus : lire `/fdroid/repo`. diff --git a/fdroid/config.template.yml b/fdroid/config.template.yml index 4b1f906..5d444ef 100644 --- a/fdroid/config.template.yml +++ b/fdroid/config.template.yml @@ -3,7 +3,7 @@ # (jamais commites). Le fichier genere vit hors du depot. --- sdk_path: @SDK@ -repo_url: https://deunix-educ.github.io/aventuriers-des-mots/repo +repo_url: https://deunix-educ.github.io/aventuriers-des-mots/fdroid/repo repo_name: Les Aventuriers des mots repo_description: >- Depot de l'application éducative « Les Aventuriers des mots » (français, diff --git a/tools/fdroid_repo.sh b/tools/fdroid_repo.sh index b07e21a..e6bd916 100755 --- a/tools/fdroid_repo.sh +++ b/tools/fdroid_repo.sh @@ -9,7 +9,7 @@ # ~/.local/share/aventuriers-des-mots/fdroid-repo.keystore # ~/.config/aventuriers-des-mots/fdroid.env (droits 600) # Publication : branche orpheline gh-pages (force-push, sans historique) servie -# par GitHub Pages sur https://deunix-educ.github.io/aventuriers-des-mots/repo +# par GitHub Pages sur https://deunix-educ.github.io/aventuriers-des-mots/fdroid/repo set -euo pipefail cd "$(dirname "$0")/.." @@ -78,7 +78,7 @@ FPR="$(keytool -list -keystore "${KEYSTORE}" -storepass "${FDROID_KEYSTORE_PASS} echo echo "Depot construit : ${STATE}/repo" echo "Empreinte de la cle du depot (SHA-256) : ${FPR}" -echo "Adresse du depot : https://deunix-educ.github.io/aventuriers-des-mots/repo" +echo "Adresse du depot : https://deunix-educ.github.io/aventuriers-des-mots/fdroid/repo" [ "${PUBLISH}" -eq 1 ] || { echo "(simulation : rien n'est publie ; --publish pour publier)"; exit 0; } @@ -87,11 +87,13 @@ echo "== Publication sur la branche gh-pages ==" REMOTE_URL="$(git remote get-url origin)" PUB="$(mktemp -d)" trap 'rm -rf "${PUB}"' EXIT -cp -r "${STATE}/repo" "${PUB}/repo" +# Le client F-Droid attend une adresse se terminant par /fdroid/repo. +mkdir -p "${PUB}/fdroid" +cp -r "${STATE}/repo" "${PUB}/fdroid/repo" cat > "${PUB}/index.html" <<'HTML' Les Aventuriers des mots - dépôt F-Droid - -Dépôt F-Droid de Les Aventuriers des mots + +Dépôt F-Droid de Les Aventuriers des mots HTML touch "${PUB}/.nojekyll" (