How do you update your script?

Hello guys, I am wondering how do you update your scripts (PHP) when you notice a big bug that may affect the functionality of the script but went unnoticed at first check? Do you just submit the new update in envato and wait for approval or you use any other automatic update process? How do you handle update process for customers who already purchased this.
Thanks everyone :slight_smile: