Noyau
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

  • --aab implies --store: no built-in server (QR, address or demo on the first screen), APK downloads hidden.
  • android/app/src/release/AndroidManifest.xml removes REQUEST_INSTALL_PACKAGES and SCHEDULE_EXACT_ALARM (permissions restricted by Play). The debug APK keeps them for direct updates.
  • Listing, Data safety, graphics: docs/store/.

Play Console

  1. Create the app, ID com.getnoyau.app, enable Play App Signing.
  2. Upload noyau-<version>-android.aab to internal testing, then promote it.
  3. Each upload requires a higher version in package.json (the versionCode is derived from it).
  4. 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, inAppUpdatePriority 4 or 5). Details: docs/store/release.md.

For iPhone: docs/ios-build.md.

Edit this page on GitHub