> For the complete documentation index, see [llms.txt](https://bikashdev.gitbook.io/ionic-5-news-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bikashdev.gitbook.io/ionic-5-news-app/final-release-build.md).

# FINAL / RELEASE BUILD

### Generating a Release Build of an App <a href="#id-0-toc-title" id="id-0-toc-title"></a>

To generate a release build for Android, run the following cli command:

```
ionic cordova build android --prod --release
```

### Generate a private key <a href="#id-1-toc-title" id="id-1-toc-title"></a>

Generate a private key using the keytool command that comes with the Android SDK:

```
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
```

### Sign the unsigned APK <a href="#id-2-toc-title" id="id-2-toc-title"></a>

```
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk alias_name
```

### Change App Name and Zipalign App <a href="#id-3-toc-title" id="id-3-toc-title"></a>

```
zipalign -v 4 app-release-unsigned.apk HelloWorld.apk
```

&#x20;For More Information Visit [Ionic Page](https://ionicframework.com/docs/deployment/play-store)
