diff --git a/Makefile b/Makefile index 1c55747..7c7d7fa 100644 --- a/Makefile +++ b/Makefile @@ -79,13 +79,14 @@ screenshot: import ## Capture une scene (SCENE=... OUT=... ARGS=...) RELEASE_ENV ?= $(HOME)/.config/aventuriers-des-mots/release.env ANDROID_DEBUG_KEYSTORE ?= $(HOME)/.local/share/godot/keystores/debug.keystore -export-android: import ## Exporte l'APK Android / ChromeOS dans build/android/ +export-android: import ## Exporte les APK Android (arm64+x86_64, et arm64 seul < 30 Mo) dans build/android/ mkdir -p build/android set -a; [ -f "$(RELEASE_ENV)" ] && . "$(RELEASE_ENV)"; set +a; \ - GODOT_ANDROID_KEYSTORE_RELEASE_PATH="$${GODOT_ANDROID_KEYSTORE_RELEASE_PATH:-$(ANDROID_DEBUG_KEYSTORE)}" \ - GODOT_ANDROID_KEYSTORE_RELEASE_USER="$${GODOT_ANDROID_KEYSTORE_RELEASE_USER:-androiddebugkey}" \ - GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD="$${GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD:-android}" \ - $(GODOT_BIN) --headless --path . --export-release "Android" build/android/aventuriers_des_mots.apk + export GODOT_ANDROID_KEYSTORE_RELEASE_PATH="$${GODOT_ANDROID_KEYSTORE_RELEASE_PATH:-$(ANDROID_DEBUG_KEYSTORE)}"; \ + export GODOT_ANDROID_KEYSTORE_RELEASE_USER="$${GODOT_ANDROID_KEYSTORE_RELEASE_USER:-androiddebugkey}"; \ + export GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD="$${GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD:-android}"; \ + $(GODOT_BIN) --headless --path . --export-release "Android" build/android/aventuriers_des_mots.apk && \ + $(GODOT_BIN) --headless --path . --export-release "Android arm64" build/android/aventuriers_des_mots_arm64.apk export-macos: import ## Exporte l'application macOS (zip) dans build/macos/ mkdir -p build/macos diff --git a/docs/distribution/fdroid.md b/docs/distribution/fdroid.md index 45f8e40..3929daf 100644 --- a/docs/distribution/fdroid.md +++ b/docs/distribution/fdroid.md @@ -6,9 +6,12 @@ toute demande. ## Ce que fournit le dépôt -- **L'APK seul dans chaque Release** : `aventuriers-des-mots-X.Y.Z-android.apk` - (en plus de l'archive `android.zip`), signé avec la clé de publication - (`make release`). Les dépôts tiers lisent ce fichier directement. +- **L'APK seul dans chaque Release** : `aventuriers-des-mots-X.Y.Z-android-arm64.apk` + (arm64 uniquement, environ 28 Mo : IzzyOnDroid refuse au-delà de 30 Mo), signé + avec la clé de publication (`make release` vérifie signature et taille). L'APK + arm64 + x86_64 reste dans `android.zip`. Marge faible : si le contenu grossit + (plus de dictées), l'APK dépassera 30 Mo : compresser davantage l'audio ou + demander une dérogation. - **Métadonnées de magasin** dans `fastlane/metadata/android/fr-FR/` : titre, descriptions courte et longue, icône 512 px, quatre captures d'écran, notes de version par `versionCode` (`changelogs/903.txt` pour la 0.9.3). C'est le @@ -26,9 +29,10 @@ dans les Releases GitHub. Pas de frais, pas de recompilation, mise à jour automatique quand un tag et une Release portant un APK sont publiés. 1. Avoir au moins une Release avec l'APK (voir plus haut) : publier la 0.9.3. -2. Ouvrir une demande d'inclusion sur le suivi des demandes d'IzzyOnDroid - (hébergé sur Codeberg ; adresse sur izzyondroid.org, page « App Inclusion - Policy »), avec l'adresse du dépôt GitHub. +2. Ouvrir un ticket sur https://codeberg.org/IzzyOnDroid/repodata/issues (compte + Codeberg gratuit ; page « New app inclusions » du site). Brouillon prêt dans + `docs/distribution/izzyondroid-request.md`, avec la mention du développement + assisté par IA (leur politique rejette les apps « vibe-coded »). 3. Les utilisateurs ajoutent ensuite le dépôt IzzyOnDroid dans le client F-Droid (ou Droid-ify, Neo Store) et installent l'application. diff --git a/docs/distribution/izzyondroid-request.md b/docs/distribution/izzyondroid-request.md new file mode 100644 index 0000000..7ad93ac --- /dev/null +++ b/docs/distribution/izzyondroid-request.md @@ -0,0 +1,58 @@ +# Demande d'inclusion IzzyOnDroid (brouillon du ticket) + +À déposer par le propriétaire du dépôt sur https://codeberg.org/IzzyOnDroid/repodata/issues +(compte Codeberg gratuit), après avoir publié la Release (`make release`). +Texte en anglais, langue du suivi. Il mentionne volontairement le développement +assisté par IA : leur politique rejette les applications « vibe-coded », il vaut +mieux le dire et laisser les mainteneurs trancher. + +--- + +**Title:** New app: Les Aventuriers des mots (offline French spelling and grammar game for kids) + +**Repository:** https://github.com/deunix-educ/aventuriers-des-mots +**Latest release (APK attached):** https://github.com/deunix-educ/aventuriers-des-mots/releases/latest +(or the tag page, e.g. `v0.9.3`: the release is marked "pre-release" because the educational content is still being reviewed by teachers) + +**What it is:** a free educational game (French school years CE1 to CM2, ages 7 to 11) +made with Godot 4: an offline 2D adventure with exercises on spelling, homophones, +verb forms and dictations. No account, no ads, no analytics, no network permission +(`INTERNET` is not requested), all data stays on the device. + +**Package name:** `org.deunix.aventuriersdesmots` + +**License:** AGPL-3.0-or-later for code and original assets; Atkinson Hyperlegible +font under OFL-1.1; synthetic dictation voice generated offline with Piper +(`fr_FR-siwis-medium`, SIWIS corpus, CC BY 4.0, attribution in `assets/CREDITS.md`). + +**APK:** `aventuriers-des-mots--android-arm64.apk`, arm64-v8a only, +about 28 MB (under your 30 MB limit), signed with the project's own release key, +attached to each GitHub release. Tags are `v`. + +**Metadata:** Fastlane structure in the repository +(`fastlane/metadata/android/fr-FR/`: title, short and full description, icon, +screenshots, changelogs named by versionCode). + +**Proprietary components:** none intended. The app is built with the stock Godot +4.6 Android export template, which contains the small inactive +`com.android.vending.licensing` stub from the Android template; there is no +Google Play Services or Firebase code. + +**AI disclosure:** the code and content were written with the help of an AI coding +assistant (Claude Code), under human direction and review: a written specification, +a decision log (`docs/specs/decisions.md`), 214 automated tests, and a content +review process in which all educational content is marked `draft` until teachers +validate it. I am telling you up front because of your policy on AI-generated +apps; I understand if this makes the app ineligible. + +Thanks for considering it. + +--- + +## Avant de déposer + +- La Release la plus récente porte bien l'APK arm64 ; `make release` vérifie la + signature de publication et la taille (< 30 Mo). +- Remplacer « 214 tests » et « about 28 MB » par les valeurs de la version publiée. +- Ne rien promettre sur l'acceptation : en cas de refus, voie 2 (dépôt F-Droid + personnel) dans `docs/distribution/fdroid.md`. diff --git a/docs/specs/decisions.md b/docs/specs/decisions.md index 4caaa84..18b80e5 100644 --- a/docs/specs/decisions.md +++ b/docs/specs/decisions.md @@ -455,3 +455,5 @@ Les corrections et les dictées CE1/CE2 n'ont pas révélé d'autre problème ; **Google Play (0.9.3)** — décision de l'utilisateur : viser Google Play, principalement pour les Chromebooks scolaires. Côté dépôt : preset « Android Play » (Gradle, App Bundle `.aab`, arm64 + x86_64, minSdk 24, cible Android 16) et cibles `make android-template` / `make export-play` ; le bundle est signé avec la clé de publication (refus sans elle). `android/` (modèle Gradle) est ignoré par git. La publication elle-même (compte, fiche, public « enfants », politique de confidentialité) relève du propriétaire : guide dans `docs/distribution/play-store.md`. **Non vérifié** : aucun envoi à la Play Console, installation du bundle non testée. **Retrait de Google Play, passage à F-Droid (0.9.3)** — décision de l'utilisateur : pas de frais Google. Le preset « Android Play », `make export-play` et `make android-template` (ajoutés puis retirés le même jour) sont supprimés ; l'APK reste l'artefact Android. Pour F-Droid : métadonnées `fastlane/metadata/android/fr-FR/` (ignorées de Godot et des exports), APK publié seul dans chaque Release en plus de `android.zip`, guide `docs/distribution/fdroid.md`. Voie recommandée : dépôt IzzyOnDroid (APK du développeur, depuis les Releases) ; F-Droid officiel (recompilation de Godot depuis les sources) reporté. **Non vérifié** : aucune demande déposée ; les Chromebooks scolaires gérés restent un cas ouvert (web, Linux ou APK selon l'établissement). + +**IzzyOnDroid et APK arm64 (0.9.3)** — décision de l'utilisateur : tenter IzzyOnDroid, avec dépôt F-Droid personnel en secours. IzzyOnDroid plafonne les APK à 30 Mo : un second preset « Android arm64 » produit un APK arm64 seul (≈ 28,4 Mo), publié seul dans la Release (`…-android-arm64.apk`) ; l'APK arm64 + x86_64 reste dans `android.zip`. `make release` refuse un APK de plus de 30 000 000 octets (marge actuelle : environ 190 Ko seulement). Demande : ticket sur le suivi Codeberg d'IzzyOnDroid ; brouillon dans `docs/distribution/izzyondroid-request.md`, qui déclare le développement assisté par IA (leur politique rejette les applications « vibe-coded » : refus possible, à assumer). Le dépôt F-Droid personnel n'est pas encore mis en place. **Non vérifié** : acceptation, installation via un client F-Droid. diff --git a/export_presets.cfg b/export_presets.cfg index ca55ebf..9a31497 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -139,3 +139,41 @@ variant/thread_support=false vram_texture_compression/for_desktop=true vram_texture_compression/for_mobile=false progressive_web_app/enabled=false + +[preset.5] + +name="Android arm64" +platform="Android" +runnable=true +advanced_options=false +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="tests/*, addons/gut/*, fastlane/*" +export_path="build/android/aventuriers_des_mots_arm64.apk" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.5.options] + +gradle_build/use_gradle_build=false +package/unique_name="org.deunix.aventuriersdesmots" +package/name="Les Aventuriers des mots" +package/signed=true +version/code=903 +version/name="0.9.3" +architectures/armeabi-v7a=false +architectures/arm64-v8a=true +architectures/x86=false +architectures/x86_64=false +screen/immersive_mode=true +screen/support_small=true +screen/support_normal=true +screen/support_large=true +screen/support_xlarge=true +permissions/internet=false diff --git a/tools/package.sh b/tools/package.sh index 8cb89cb..7075a92 100755 --- a/tools/package.sh +++ b/tools/package.sh @@ -120,8 +120,10 @@ WEB && zip -qr "${CHROMEOS}.zip" "${CHROMEOS}") # L'APK est aussi publie seul : les depots F-Droid tiers (IzzyOnDroid) le lisent # directement dans la Release, sans archive. -cp build/android/aventuriers_des_mots.apk "dist/${ANDROID}.apk" +# Version arm64 seule (moins de 30 Mo, plafond d'IzzyOnDroid) ; l'APK arm64 + x86_64 +# reste dans l'archive android.zip. +cp build/android/aventuriers_des_mots_arm64.apk "dist/${ANDROID}-arm64.apk" (cd dist && sha256sum "${LINUX}.tar.gz" "${WINDOWS}.zip" "${ANDROID}.zip" \ - "${ANDROID}.apk" "${MACOS}.zip" "${CHROMEOS}.zip" > SHA256SUMS) + "${ANDROID}-arm64.apk" "${MACOS}.zip" "${CHROMEOS}.zip" > SHA256SUMS) rm -rf "dist/${LINUX}" "dist/${WINDOWS}" "dist/${ANDROID}" "dist/${MACOS}" "dist/${CHROMEOS}" ls -lh dist diff --git a/tools/release.sh b/tools/release.sh index 7ecd3c9..bbe41cf 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -55,7 +55,7 @@ ARCHIVES=( "dist/aventuriers-des-mots-${VERSION}-linux-x86_64.tar.gz" "dist/aventuriers-des-mots-${VERSION}-windows-x86_64.zip" "dist/aventuriers-des-mots-${VERSION}-android.zip" - "dist/aventuriers-des-mots-${VERSION}-android.apk" + "dist/aventuriers-des-mots-${VERSION}-android-arm64.apk" "dist/aventuriers-des-mots-${VERSION}-macos-universal.zip" "dist/aventuriers-des-mots-${VERSION}-chromeos.zip" ) @@ -69,7 +69,10 @@ APKSIGNER="$(ls -d "${ANDROID_HOME:-${HOME}/Android/Sdk}"/build-tools/*/apksigne [ -x "${APKSIGNER}" ] || fail "apksigner introuvable (Android SDK build-tools)" TMP="$(mktemp -d)" trap 'rm -rf "${TMP}"' EXIT -CERTS="$("${APKSIGNER}" verify --print-certs "dist/aventuriers-des-mots-${VERSION}-android.apk")" +# IzzyOnDroid n'accepte pas d'APK de plus de 30 Mo. +APK_SIZE="$(stat -c %s "dist/aventuriers-des-mots-${VERSION}-android-arm64.apk")" +[ "${APK_SIZE}" -le 30000000 ] || fail "l'APK arm64 depasse 30 Mo (${APK_SIZE} octets)" +CERTS="$("${APKSIGNER}" verify --print-certs "dist/aventuriers-des-mots-${VERSION}-android-arm64.apk")" if grep -q "${DEBUG_CERT_DN}" <<<"${CERTS}"; then fail "l'APK est signe avec la cle de debogage Godot : verifier ${RELEASE_ENV}" fi @@ -86,7 +89,7 @@ les voix des dictées sont provisoires (synthèse vocale). | Plateforme | Archive | Testé à la main | |---|---|---| | Linux | \`linux-x86_64.tar.gz\` | oui | -| Android | \`android.apk\` (ou \`android.zip\` avec notice) | oui | +| Android | \`android-arm64.apk\` (téléphones et tablettes ARM) ou \`android.zip\` (arm64 + x86_64, avec notice) | oui | | Navigateur / ChromeOS | \`chromeos.zip\` (version web + APK) | web : oui | | Windows | \`windows-x86_64.zip\` | non | | macOS | \`macos-universal.zip\` | non |