Mobile custom-base and release packaging
AppKernia provides one Node.js orchestrator for the HBuilderX and DevEco toolchains on macOS and Windows. Android and iOS custom bases always use a custom playground. HarmonyOS produces a local HAP with the AppKernia native identity instead of the DCloud package name or default icon.
Custom bases
Per-platform commands:
The all command defaults to an iOS simulator base on macOS. On Windows it defaults to an iOS device base and therefore requires an Apple Development p12 and provisioning profile. Override it with AK_CUSTOM_IOS_TARGET=simulator|device.
Production releases
Per-platform entry points are build:mobile:release:android, build:mobile:release:ios, build:mobile:release:harmony:prepare, and build:mobile:release:harmony.
Android release packaging uses the project's own Keystore. iOS uses an Apple Distribution p12 and App Store provisioning profile. The orchestrator passes signing values to HBuilderX through a restricted temporary configuration file, so passwords are not written to command-line arguments or the repository.
HarmonyOS release packaging is intentionally two-stage:
release:harmony:prepareregenerates the native project, overlays the AppKernia AppScope, and removes stale signing references.- Configure a release Signing Config for
com.appkernia.mobilein DevEco Studio, then runrelease:harmonyto build the signed APP.
release:preflight checks the Android and iOS signing environment variables together with the Harmony Signing Config. It fails if any required input is absent.
Tool paths
Common installation locations are detected automatically. Override them with:
Windows PowerShell example:
Signing environment variables
Android release:
iOS development and release:
Never commit these values through an .env file. Use a CI secret store or temporary variables in the current local shell.
Evidence boundaries
- A dry run validates orchestration but does not package an app.
- A successful build is not an installation or physical-device result.
- A signed artifact has not necessarily been uploaded or approved by a store.
- An iOS simulator result does not prove iOS physical-device behavior.
- An unsigned Harmony HAP is for the official emulator and is not a production store APP.
The complete repository manuals are:
docs/manual/mobile-custom-base-build.mddocs/manual/mobile-production-release.md
Continue with Mobile development and Project structure.