How to properly develop run.sh

Hi!

I’m new to developing addons for Home Assistant and I’ve read the introduction from the HA manual etc, but there’s one thing that I cannot really grasp.

What are the development methods really? When do I need to build a new docker image and when can I work by editing run.sh?

If “run.sh” would have been built into the Dockerimage, then it wouldnt have to ship with the addon. So therefore I assume that the Dockerimage copies run.sh when started.

But if I edit “run.sh” and start the addon, the new changes are not applied even if I uninstall/install the local addon again.

Can anyone explain to me how I can effectively work with run.sh?

Thank you!