feat(android): write android.json, icon and presplash for RAPT from [android]

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-10-23 16:23:46 +02:00
1 parent d1bcdf3340
commit 8eae166e7a
5 files changed
+177

No files matched your search

+12
View File
@@ -151,6 +151,18 @@ python3 -m http.server -d build/web 8000 # then open http://localhost:8000
"$RENPY_SDK"/renpy.sh $RENPY_SDK/launcher distribute vn --package linux --destination build/dist
```
```sh
# Android APK (needs the `[android]` table in work.toml, RAPT in the SDK and JDK 21)
"$RENPY_SDK"/renpy.sh $RENPY_SDK/launcher android_build vn --destination build/dist
```
RAPT (https://www.renpy.org/dl/<version>/renpy-<version>-rapt.zip) is unzipped into the SDK
folder, and its Android SDK is installed once with `python android.py installsdk` run from
`rapt/` using the SDK's own Python with the SDK folder on `sys.path` (it asks to accept
Google's Android SDK licence). The first build creates `vn/android.keystore` and
`vn/bundle.keystore`: back them up, keep them out of git and reuse the same ones for every
release, or installed apps cannot be updated.
`--package` also accepts `win` and `mac`; omit it to build every package. The web build
also leaves a `build/web.zip` next to the folder. A web build writes
`vn/progressive_download.txt`; delete it (it is not part of the generated project).
+20
View File
@@ -134,3 +134,23 @@ Optional `[translations.<code>]` tables: other languages from a published transl
text (verbatim, never machine-translated). Configuration, mapping rules and the Ren'Py output
are in [translations.md](translations.md); the mapping is committed as
`data/translations/<code>.json`.
### Android
Optional `[android]` table: `vnpipe renpy` then also writes the inputs RAPT (Ren'Py's Android
tool) needs into the project, so the APK can be built without the launcher GUI
(`docs/running.md`, section 5).
```toml
[android]
package = "io.github.you.work" # required; permanent once published
name = "Title" # default: [work].title
orientation = "sensorLandscape" # default
icon = "assets/sprites/x.webp" # optional: subject for the adaptive icon (top square)
icon_background = "#14110e" # optional: icon background colour
presplash = "assets/bg/y.webp" # optional: image shown while the game loads
```
Files written: `android.json`, `android-icon_foreground.png`, `android-icon_background.png`,
`android-presplash.jpg`. The signing keystores (`android.keystore`, `bundle.keystore`) are never
generated by vnpipe: RAPT creates them on the first build and they must stay secret.