# 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:&#x20;

`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 release APK <a href="#generating-the-release-apk" id="generating-the-release-apk"></a>

```
** $ flutter build apk --release
```

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

```
** $ flutter build --release
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionicfirebaseapp.com/readymade-restaurant-app/release-build.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
