-
Notifications
You must be signed in to change notification settings - Fork 27
Building & Releasing
Sworup Shakya edited this page Nov 14, 2022
·
2 revisions
- Make sure you the Environment variables set correctly.
- To build mSupply Mobile from source, you will need a signing key from a Sussol insider.
- Copy or move the release key to the
./android/app
directory, e.g.mv my-release-key.keystore ./android/app
. - Run
yarn clean-mac-cache
before building. - Build the mSupply Mobile APK:
yarn build
. - The mSupply Mobile APK file can be found at
android/app/build/outputs/apk/app-release.apk
. - For more information, see the official React Native documentation for generating signed APKs.
- Bump the version number in
package.json
to the intended release version before building (if unsure, check with a mSupply Mobile team member!) - Follow the steps above to build from source
- After the build has completed, run
yarn upload-bugsnag
to upload source maps to BugSnag - Create a new release in GitHub (https://github.com/openmsupply/mobile/releases/new)
- Drag and drop the apps from
android/app/build/outputs/apk/release
into assets and add release notes as required