My first app with capacitor, build using shell script

Hi all, I always used cordova engine but now i’d like to migrate at capacitor.

I created my first project but I have some problem.

I have enabled the android platform and I want to create the aab file to upload to the google play console.

ionic cap build android --prod

The command completed succcessfully but then It open Android Studio Tool and show this message:

To continue, build your project using Android Studio!

In the ionic/cordova applications I created some shell scripts that allow me to quickly generate the aab file and sign it. then I manually upload the file to the developer console.

My “windows” old cordova script was similar to:

Building
ionic cordova build android --prod --release -- -- --packageType=bundle

Signing

> jarsigner -verbose -sigalg SHA1withRSA -storepass ****** -digestalg SHA1 -keystore %cert_path% %dir%\app-release.aab ****

> %build_tools_path%\zipalign -v 4 %dir%\app-release.aab %dir%\%bundle%-%vers%.aab

File created into platforms\android\app\build\outputs\bundle\release folder

If possible to use the same approach with capacitor?

Thanks