> For the complete documentation index, see [llms.txt](https://docs.ionicfirebaseapp.com/online-grocery-shopping-and-delivery-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionicfirebaseapp.com/online-grocery-shopping-and-delivery-system/customer-app/release-build.md).

# Release build

Goto for android: <https://flutter.io/android-release/>

Goto for ios: [https://flutter.io/ios-release/](https://flutter.io/android-release/)

### Create a Keystore

If you have an existing Keystore, skip to the next step. If not, create one by running the following at the command line:

`keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key`

Set up for Preparing an Android App for Release [click here​](https://flutter.io/android-release/)\
Set up for Preparing an IOS App for Release [click here](https://flutter.io/ios-release/)

Generating the android release (APK or app bundle)

```
$ flutter build apk --release
$ flutter build appbundle --target-platform android-arm,android-arm64,android-x64
```

## Generating the IOS release <a href="#testing-the-release-build-of-your-app" id="testing-the-release-build-of-your-app"></a>

```
$ flutter build ios --release
```
