Sections
Documentation › Develop
Build the Android app
| Output | Command | Use |
|---|---|---|
| Debug APK | node scripts/build-mobile.mjs android |
Direct installation on a phone |
| Signed AAB | node scripts/build-mobile.mjs android --aab |
Upload to the Play Store (Play Console), --store profile implied |
Both run the web build, the version (package.json → versionCode/versionName), the icons and cap sync. The binary goes to .data/mobile-builds/; --share puts it in the Shared files.
Prerequisites
- Android SDK:
ANDROID_HOME(default~/Android/Sdk), JDK 21. npm install --include=dev.
Play Store upload key
Only once, outside the repository, to keep with its backup (losing it blocks updates until Google has reset the upload key):
keytool -genkeypair -keystore ~/noyau-keys/upload.jks -alias upload -keyalg RSA -keysize 4096 -validity 10000
Then one of the two sources (variables win):
| Variable | android/keystore.properties key |
|---|---|
NOYAU_ANDROID_KEYSTORE |
storeFile (path relative to android/ accepted) |
NOYAU_ANDROID_KEYSTORE_PASSWORD |
storePassword |
NOYAU_ANDROID_KEY_ALIAS |
keyAlias |
NOYAU_ANDROID_KEY_PASSWORD |
keyPassword |
android/keystore.properties, *.jks and *.keystore are ignored by git. Without these four values, --aab stops and names what is missing, without showing any value; the debug APK is still possible.
Play Store profile
--aabimplies--store: no built-in server (QR, address or demo on the first screen), APK downloads hidden.android/app/src/release/AndroidManifest.xmlremovesREQUEST_INSTALL_PACKAGESandSCHEDULE_EXACT_ALARM(permissions restricted by Play). The debug APK keeps them for direct updates.- Listing, Data safety, graphics:
docs/store/.
Play Console
- Create the app, ID
com.getnoyau.app, enable Play App Signing. - Upload
noyau-<version>-android.aabto internal testing, then promote it. - Each upload requires a higher version in
package.json(theversionCodeis derived from it). - Updates: the app asks Play (in-app updates) and offers to install the new version; to force an immediate update, set the release's update priority (Play Developer API,
inAppUpdatePriority4 or 5). Details:docs/store/release.md.
For iPhone: docs/ios-build.md.