Ionic5/Capacitor which is the right workflow to rebuild the app?

Hi,
I’ve created an Ionic5 app with Capacitor using these commands:

    - ionic build
    - npx cap add android
    - npx cap copy android
    - npx cap update
    - npx cap open android
    - Android Studio--> sign app
    - Android Studio--> build apk

After modifying the app and adding other plugins, which are the right commands to build a new app?
Is this sequence of commands right?

    - ionic build
    - npx cap copy android
    - npx cap update
    - npx cap open android
    - Android Studio--> sign app
    - Android Studio--> build apk

Thank you

cld

Use copy for any changes to the web app as this command copies everything from the www directory. Use update if you install any plugins as it copies any native files in android and ios directories and runs the install commands for these. Use sync to run both of these.

See https://capacitor.ionicframework.com/docs/basics/workflow

2 Likes